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

Ability to convert numbers to numeral adverbs #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Tzahi12345
Copy link

Numeral adverbs are words like 'once', 'twice', 'thrice', and 'four times.'

Was looking for a library that did this, but couldn't find one. I thought: why not add the capability to this existing project! It can expand on the existing ordinal numbers capabilities already here. Let me know what you think, or if you have any suggestions.

Thanks!

@Tzahi12345
Copy link
Author

Any thoughts on the PR? @marlun78

if (numeralAdverbsLessThanFour.hasOwnProperty(words) && (number !== 3 || !ignoreThrice)) {
return numeralAdverbsLessThanFour[words];
} else {
return words + ' times';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 - One times <------------
2 - Two times
3 - Three times

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

Successfully merging this pull request may close these issues.

2 participants