indefinite_article
indefinite_article copied to clipboard
Indefinite article identification for Ruby strings
Adds broader support for initialisms. Currently, all initialisms are assumed to be pronounceable (e.g. NAFTA) so the a/an decision uses the same logic as lowercase words, with a list of...
I was using this library to generate descriptions based on ages and found that 18 and 110 were incorrectly indefinitized: ``` rb "18-year-old woman".indefinitize #=> "a 18-year-old woman" (incorrect) "180-year-old...
For example, you'd want "An 18 point lead" instead of "A 18 point lead".
This is amazing !!!! Is it possible to create a Go version of this ? @rossmeissl :)