Skip to content

Commit

Permalink
Merge pull request #326 from hapytex/bugfix/dutch_zero_ordinal
Browse files Browse the repository at this point in the history
Fix zeroth in Dutch to nulde fixing #325
  • Loading branch information
mrodriguezg1991 authored Aug 18, 2022
2 parents 48dd5bd + bb1c718 commit 7c86a85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion num2words/lang_NL.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ def setup(self):
"zes", "vijf", "vier", "drie", "twee", "één",
"nul"]

self.ords = {"één": "eerst",
# Wiktionary says it is "nulde", not "nulte" or "nule"
# https://en.wiktionary.org/wiki/nulde
self.ords = {"nul": "nuld",
"één": "eerst",
"twee": "tweed",
"drie": "derd",
"vier": "vierd",
Expand Down
1 change: 1 addition & 0 deletions tests/test_nl.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def test_ordinal_more_than_twenty(self):
)

def test_ordinal_at_crucial_number(self):
self.assertEqual(num2words(0, ordinal=True, lang='nl'), "nulde")
self.assertEqual(num2words(100, ordinal=True, lang='nl'), "honderdste")
self.assertEqual(
num2words(1000, ordinal=True, lang='nl'), "duizendste"
Expand Down

0 comments on commit 7c86a85

Please sign in to comment.