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

anything ending with ss comes out with one s with singular_noun #46

Closed
simudream opened this issue Jan 16, 2018 · 6 comments
Closed

anything ending with ss comes out with one s with singular_noun #46

simudream opened this issue Jan 16, 2018 · 6 comments

Comments

@simudream
Copy link

p = inflect.engine()
p.singular_noun('dress')
'dres'
p.singular_noun('address')
'addres'

@anyeone
Copy link

anyeone commented May 8, 2018

I also see this with "ness" words such as p.singular_noun("wellness") = "welnes" and p.singular_noun("fitness") = "fitnes"

It also turned "clothes" into "clothe"

@pwdyson
Copy link
Collaborator

pwdyson commented May 12, 2018

This is intended behaviour as this module is garbage in garbage out. If you ask for the singular of something that is not already a plural the output will not be sensible.

@jwg4
Copy link

jwg4 commented Jun 20, 2018

I don't agree that this is intended behavior. If you ask for the singular of 'foo' it returns False as it recognizes that no plural is of this form. If you ask for the singular of a word ending in 'ss' it should also return False, as no plural of a word ending in 's' is formed by adding an additional 's'.

@jcollard
Copy link

jcollard commented Jul 9, 2018

Also experiencing this issue.

@virresh
Copy link

virresh commented Nov 7, 2018

Just another one to the list

>>> engine.singular_noun('boss')
'bos'
>>> engine.singular_noun('class')
'clas'
>>> engine.singular_noun('glass')
'glas'

False would be more appropriate.

@jaraco
Copy link
Owner

jaraco commented Nov 15, 2020

I've added these words as examples to consider in #15.

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

7 participants