savoirfairelinux / num2words

Modules to convert numbers to words. 42 --> forty-two
GNU Lesser General Public License v2.1
820 stars 497 forks source link

Triple consonant in Swedish is incorrect #573

Open ErikChHenriksson opened 5 months ago

ErikChHenriksson commented 5 months ago

Summary

In Swedish, you can never have three consonants in a row. When translating numbers to text using num2words, this sometimes happens. For instance, when translating 1000 to text.

Expected Behaviour

1000 -> ettusen

Actual Behaviour

1000 -> etttusen

The rule is basically that there should never be three consonants in a row in any word in Swedish.
It is OK to write "ett tusen" or "ettusen", but never etttusen.