Humanizer icon indicating copy to clipboard operation
Humanizer copied to clipboard

Can you prefix a string with "a" or "an"

Open dustyghost opened this issue 3 years ago • 2 comments

For example

I have "unicorn", I would like that to end up "a unicorn" I have "hour", I would like that to end up "an hour" I have "penguin", I would like that to end up "a penguin"

dustyghost avatar Jun 20 '21 21:06 dustyghost

From my understanding, the required rules would be pretty complex (even though it's only applicable to English locales), because the prefix is based on pronunciation, so that the same word might require different prefixes in en-IE and en-GB. I'm not sure Humanizer can do this right now.

hangy avatar Jun 20 '21 23:06 hangy

Yeah I thought so, Humanizer is pretty amazing at pluralizing, I was hoping it did this too. Never mind, will find another way.

dustyghost avatar Jun 21 '21 10:06 dustyghost

This does exist, though: https://www.nuget.org/packages/AvsAn/

Arithmomaniac avatar Dec 19 '23 07:12 Arithmomaniac

Would be outside of the scope for Humanizer

hazzik avatar Feb 21 '24 07:02 hazzik