Skip to content
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

'defnoun' doesn't seem to work when the word is a part of a string passed #163

Open
jaraco opened this issue Jul 9, 2022 · 1 comment
Open

Comments

@jaraco
Copy link
Owner

jaraco commented Jul 9, 2022

Originally reported by @aMiss-aWry in #161:

I can fix the specific words with defnoun('jeans', 'jeans'), which corrects the result for an isolated string 'jeans' -> 'jeans'.

However, if I try to run plural_noun on 'blue jeans' instead of 'jeans' it then breaks again, returning 'blue jeanss'. I understand this is because 'blue jeans' appears to be a different string from 'jeans', but perhaps it should check the rules for the part of the string it is altering?

@jaraco
Copy link
Owner Author

jaraco commented Jul 9, 2022

These compound (multi-word) phrases are a more complex challenge in this library. The library does attempt in some cases to handle such words, but probably can't do so in general. Consider for example "a multitude of factors" or "cul de sac", which when pluralized becomes "multitudes of factors" and "culs de sac". I welcome someone to try to solve this issue either generally or specifically for "(anything) jeans".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant