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

Issue with Pluralization in German Language for Umlauts #335

Open
peymansf2000 opened this issue Jan 1, 2024 · 0 comments
Open

Issue with Pluralization in German Language for Umlauts #335

peymansf2000 opened this issue Jan 1, 2024 · 0 comments

Comments

@peymansf2000
Copy link

peymansf2000 commented Jan 1, 2024

I hope this message finds you well. I've identified an issue with the pluralization function in your GitHub repository when dealing with German words containing umlauts. The problem becomes apparent in cases where the plural form should include umlauts, but the function does not handle them correctly.

Here are specific examples:

word1 = 'Frucht'
pluralize(word1)
#should be 'Früchte'
Out[8]: 'Fruchte'

word2 = 'Apfel'
pluralize(word2)
#should be 'Äpfel'
Out[9]: 'Apfel'

word3 = 'Arzt'
pluralize(word3)
#should be 'Ärzte'
Out[10]: 'Arzte'

word4 = 'Anbaufläche'
pluralize(word4)
#it's true
Out[11]: 'Anbauflächen'

word5 = 'Fläche'
pluralize(word5)
# it's true
Out[12]: 'Flächen'

word6 = 'Stuhl'
pluralize(word6)
#should be 'Stühle'
Out[13]: 'Stuhle'

word7 = 'Flüssigkeit'
pluralize(word7)
#should be 'Flüssigkeiten'
#no 'en'!why!
Out[14]: 'Flüssigkeit'

word8 = 'Röhre'
pluralize(word8)
#it's true
Out[15]: 'Röhren'

word9 = 'Höhle'
pluralize(word9)
#it's true
Out[16]: 'Höhlen'

word10 = 'Ökonomie'
pluralize(word10)
#it's true
Out[17]: 'Ökonomien'

word11 = 'Loch'
pluralize(word11)
#should be 'Löcher'
Out[18]: 'Loche'
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

1 participant