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

Corrected ordinals for Swedish and updated tests accordingly #86

Closed
wants to merge 3 commits into from
Closed

Corrected ordinals for Swedish and updated tests accordingly #86

wants to merge 3 commits into from

Conversation

jojoman2
Copy link
Contributor

There are problems in the ordinal recognition for Swedish. The most severe one is that all the numbers above 15 are actually Danish, not Swedish. Apart from that digits and digits followed by a dot are considered ordinals.

This pull request fixes this and also adds support for ordinals up to 100. The structure of the code is similar to in the ordinal recognition in English. Tests are also updated, both the ordinal tests and the time tests where incorrect ordinals were used.

@facebook-github-bot
Copy link
Contributor

@patapizza has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@patapizza
Copy link
Contributor

Thanks @jojoman2!

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

Successfully merging this pull request may close these issues.

3 participants