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

pattern.de.singularize() produces wrong results for suffix "en" #63

Closed
jnns opened this issue Dec 23, 2013 · 1 comment
Closed

pattern.de.singularize() produces wrong results for suffix "en" #63

jnns opened this issue Dec 23, 2013 · 1 comment

Comments

@jnns
Copy link

jnns commented Dec 23, 2013

https://github.com/clips/pattern/blob/master/pattern/text/de/inflect.py#L316

The default pattern is to cut off the suffix en from plural nouns to return the singular but this does only work in some cases, not for one of the following:

  • Löwen → Löw
  • Konserven → Konserv
@tom-de-smedt
Copy link
Member

Overall, singularization is about 80% correct, which is not bad. It also means that it will get 2/10 words wrong; these will stand out. I added some extra rules to the algorithm. If you have more examples, please let me know! Tom

This issue was closed.
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

No branches or pull requests

2 participants