Skip to content

Made changes for BUG #141#149

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

Made changes for BUG #141#149
anantguptadbl wants to merge 1 commit intoclips:masterfrom
anantguptadbl:master

Conversation

@anantguptadbl
Copy link
Copy Markdown

Signed-off-by: anantguptadbl anantguptadbl@gmail.com

The way the singularize function is structured, it was creating issues for few words that appear at the end of large words
Within the function there were specific calls for endswith
For the words listed in
singular_irregular
singular_uncountable
singular_uninflected

for x in singular_uninflected:
    if x.endswith(w):
            return word


the above is changed to


for x in singular_uninflected:
    if x==w:
        return word

The function endswith will not add value, so I replaced it with a simple equals comparison

Signed-off-by: anantguptadbl <anantguptadbl@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant