-
-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
singular_noun on word ending in "s" removes s. #159
Comments
This issue is related to #161. It seems inflect is naïve when it comes to many words and simply adds or subtracts a trailing s for plural/singular transforms. Probably there are many such edge cases. I'd be open to a special-case fix for "mass" or a more general solution to words ending in "s". |
I got the same error with two other words: |
@jaraco I can only think of a solution that involves a dictionary (like a list of valid words). That would be cumbersome, but I can't think of it in another way. One solution would be creating another repo with only a list of words (maybe only singulars?) like this one and then offer a version of the functions that loads this list (for people that don't mind loading a set of words in memory for the sake of correctness). This would be helpful also when using specific terms, so it could have for example a set of words for specific scenarios, like machine learning, biology, etc. |
@jaraco I'm pretty sure all words that end with ss are singular. If you think this is the right solution, can I correct this issue and submit a pull request? |
I'm not opposed to the solution, but will point out that plural acronyms can end in "ss". For example, GISs, plural of GIS.
But this problem seems addressable via other means, and might be a better problem to have than the current one.
…On Tue, Oct 31, 2023, at 20:29, KnisSukparangsee wrote:
@jaraco <https://github.com/jaraco> I'm pretty sure all words that end with ss are singular. If you think this is the right solution, can I correct this issue and submit a pull request?
—
Reply to this email directly, view it on GitHub <#159 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAIUWC6VY34EELQJ3IDK2BTYCG6ZTAVCNFSM5WIXX3XKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZYHAZTKMJRGIZQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Is this behavior a bug? singular_noun() is supposed to return False when the word is already singular, and I can find no reference to suggest "mass" is the plural of "mas", which is itself the plural of "ma".
The text was updated successfully, but these errors were encountered: