Skip to content

Fixed singularize to handle -ss singular nouns#113

Open
gaulinmp wants to merge 1 commit intoclips:masterfrom
gaulinmp:master
Open

Fixed singularize to handle -ss singular nouns#113
gaulinmp wants to merge 1 commit intoclips:masterfrom
gaulinmp:master

Conversation

@gaulinmp
Copy link
Copy Markdown

@gaulinmp gaulinmp commented Jul 3, 2015

Code didn't condition final removal of -s on not following another s.
See rules from http://www.csse.monash.edu.au/~damian/papers/HTML/Plurals.html:

if suffix(-[^s]s), return inflection(-s,-)

Previously, singularize('business') => 'busines' which is incorrect.

Code didn't condition final removal of -s on not following another s. 
See rules from http://www.csse.monash.edu.au/~damian/papers/HTML/Plurals.html:

`if suffix(-[^s]s), return inflection(-s,-) `

Previously, singularize('business') => 'busines' which is incorrect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants