TheoryOfNekomata
d227f3e09f
Fix short millia
Make short millia parse and stringify correctly.
pirms 1 gada
TheoryOfNekomata
f2e4ab3c5c
Fix millia
Use special millions prefix only when millia is less than one.
pirms 1 gada
TheoryOfNekomata
82f87bbeac
Add test locale
Add en-UK locale with same short count as en-US.
pirms 1 gada
TheoryOfNekomata
6c81723b78
Organize system
Add namespace for short/long count. Also manage conversion configs and defaults.
pirms 1 gada
TheoryOfNekomata
545d0a54aa
Add bailout for conversion to bigint
There is only a certain string length allowed to convert parsed numbers to bigint.
pirms 1 gada
TheoryOfNekomata
bb15edd726
Improve string sanitation for parsing
Ensure strings are properly sanitized before processing.
pirms 1 gada
TheoryOfNekomata
bb5b7403f9
Fix exponential normalization
Ensure exponents are normalized properly.
pirms 1 gada
TheoryOfNekomata
9f9a055f03
Switch place values to bigint
Use bigint for place values to be more adaptable with longer inputs.
pirms 1 gada
TheoryOfNekomata
83f0f28012
Split system functions
Put functions with different purposes into their own files.
pirms 1 gada
TheoryOfNekomata
a0a3251ca1
Use correct group place for combineGroups
Use appropriate place instead of smallest group when creating placeholder groups between actual groups.
pirms 1 gada
TheoryOfNekomata
6a78aecef8
Refactor groups
Make group management more readable.
pirms 1 gada
TheoryOfNekomata
73204c19df
Add hyphen option
Formal English hyphenates tens names.
pirms 1 gada
TheoryOfNekomata
0071c9d493
Fix stringify bugs
Address errors with gapped groups.
pirms 1 gada
TheoryOfNekomata
efe4291dce
Fix logic with no hundreds place between groups
Ensure digits parse correctly when there are gaps.
pirms 1 gada
TheoryOfNekomata
fd0ea31fe4
Refactor code
Make code more cleaner when parsing.
pirms 1 gada
TheoryOfNekomata
b57b7ac8ea
Format code
Format more sections of the code.
pirms 1 gada
TheoryOfNekomata
b0762fd47c
Update lint
Use ESLint for formatting.
pirms 1 gada
TheoryOfNekomata
4022962dc5
Rewrite package
Include parse and stringify functions for American short-count locale.
pirms 1 gada
TheoryOfNekomata
7a890bbeef
Trim input, update TODO
The inputs are now trimmed before conversion.
The TODO items are updated for possible correct formats.
pirms 3 gadiem
TheoryOfNekomata
1e67424067
Implement ordinals, refactor code
Ordinals have been implemented in both English and German (tho I'm not
sure how to check correctness of German number names and ordinals).
Also, refactored code to have common rules for a language, and special
rules for each variant (in the future, French will have this structure
handy).
pirms 3 gadiem
TheoryOfNekomata
1b45838a64
Reimplement tests from archive
Make sure cases from chongo are accounted for.
pirms 3 gadiem
TheoryOfNekomata
33201e4020
Initial commit
Add files from pridepack.
pirms 3 gadiem