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

The bot could multiply large numbers in headlines by 1000 #309

Open
zuzak opened this issue Jul 11, 2019 · 2 comments
Open

The bot could multiply large numbers in headlines by 1000 #309

zuzak opened this issue Jul 11, 2019 · 2 comments

Comments

@zuzak
Copy link
Contributor

zuzak commented Jul 11, 2019

requested on IRC

@georgewatson
Copy link
Contributor

georgewatson commented Jul 12, 2019

Suggested replacements:

thousand → million
a[i] + "illion" → a[i + 1] + "illion" where a = [m, b, tr, quadr, quint, ..., octodec, novemdec, vigint]
a → a + "000" if int(a) > 1000 (must handle commas & spaces)
(E|10^|10**)n → \1(n + 3) if typeOf(n) == "int"

@zuzak
Copy link
Contributor Author

zuzak commented Jul 12, 2019

Split the easy one out into a new issue.
For a more scaleable solution I guess you could convert the words into numbers, transform them, and then use write-int to bring them back numbers.js

@zuzak zuzak added this to the News module milestone Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants