Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

tryParseDanish "tyvetyve" returns 40 #29

Open
ploeh opened this issue Feb 3, 2016 · 1 comment
Open

tryParseDanish "tyvetyve" returns 40 #29

ploeh opened this issue Feb 3, 2016 · 1 comment

Comments

@ploeh
Copy link
Owner

ploeh commented Feb 3, 2016

tryParseDanish "tyvetyve" returns Some 40, which is surprising to say the least. It was never an explicit test case, though, but is a fairly standard idiom in the language, particularly when referring to years:

  • nitten-fireogfirs (1984)
  • tyve-seksten (2016)
  • atten-fireogtres (1864)

There are two potential ways to address such numbers:

  1. If they are unambiguous, a better result from tryParseDanish "tyvetyve" would be Some 2020. While I suspect that they are unambiguous, anyone can, and is welcome to, prove me wrong with only a single counter-example.
  2. If such numerals are ambiguous, the correct return value would be None.
@ploeh
Copy link
Owner Author

ploeh commented Feb 3, 2016

Similar to #28

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant