Add something that changes from a to an based on the following word #39
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
a/an (word)/
e.g.
a/an Earl/ -> an Earl
a/an Queen/ -> a Queen
aan/word? Too cryptic!
a/an word? Maybe best, but still common outside of this. :/
Let's go with a/an.
Big issue: vowels don't necessarily indicate how a word is pronounced and, as a result, whether it should be prefaced with a/an.
Okay. I've found a library that does this. In cases where the library doesn't work, the user can add an also replacement of "a/an also/(word)" -> "a (word)" or "an (word)" depending on what sounds right.
It doesn't work for plurals, but I don't think it needs to. In case I ever want to check for plurals, this library does that.
Some specifics on how it does work: