TheoryOfNekomata
c5a65ae9d8
Update parse
Put common English parse functions to en/common.
пре 6 месеци
TheoryOfNekomata
6dc41a3ca4
Organize methods
Put common English methods to en/common.
пре 6 месеци
TheoryOfNekomata
fa9c981c07
Update documentation, types
Add features and limitations to the project.
Also update the types to be stricter.
пре 1 година
TheoryOfNekomata
0b2a5621b8
Enhance validation
Add handling to extreme/sentinel values.
пре 1 година
TheoryOfNekomata
a66479fe60
Add edge cases
Add tests related to error handling.
пре 1 година
TheoryOfNekomata
a05bed5908
Implement long count
Traditional British long count is available for systems.
пре 1 година
TheoryOfNekomata
8fd3b115a3
Fix millia parsing/stringifying
Only largest millia should remove prefix when group is 001.
пре 1 година
TheoryOfNekomata
8140cda623
Fix negative
Make word positive when making negative a negative number.
пре 1 година
TheoryOfNekomata
d227f3e09f
Fix short millia
Make short millia parse and stringify correctly.
пре 1 година
TheoryOfNekomata
f2e4ab3c5c
Fix millia
Use special millions prefix only when millia is less than one.
пре 1 година
TheoryOfNekomata
82f87bbeac
Add test locale
Add en-UK locale with same short count as en-US.
пре 1 година
TheoryOfNekomata
930a5c644b
Update example
Render system selection.
пре 1 година
TheoryOfNekomata
5153994dac
Use HTML default values
Use values in HTML for default options in conversions.
пре 1 година
TheoryOfNekomata
87d05b7c49
Update example page
Make placeholders responsive.
пре 1 година
TheoryOfNekomata
6c81723b78
Organize system
Add namespace for short/long count. Also manage conversion configs and defaults.
пре 1 година
TheoryOfNekomata
a0739c3ec4
Re-enable test
Enable all tests in project.
пре 1 година
TheoryOfNekomata
545d0a54aa
Add bailout for conversion to bigint
There is only a certain string length allowed to convert parsed numbers to bigint.
пре 1 година
TheoryOfNekomata
790a0a656b
Make example viewable in mobile
Add meta viewport for mobile responsiveness.
пре 1 година
TheoryOfNekomata
bb15edd726
Improve string sanitation for parsing
Ensure strings are properly sanitized before processing.
пре 1 година
TheoryOfNekomata
bb5b7403f9
Fix exponential normalization
Ensure exponents are normalized properly.
пре 1 година
TheoryOfNekomata
daa6278f35
Add example
Provide a basic example page.
пре 1 година
TheoryOfNekomata
9f9a055f03
Switch place values to bigint
Use bigint for place values to be more adaptable with longer inputs.
пре 1 година
TheoryOfNekomata
83f0f28012
Split system functions
Put functions with different purposes into their own files.
пре 1 година
TheoryOfNekomata
f7d14545b5
Update packages
Use latest vitest and coverage-v8 packages.
пре 1 година
TheoryOfNekomata
a0a3251ca1
Use correct group place for combineGroups
Use appropriate place instead of smallest group when creating placeholder groups between actual groups.
пре 1 година
TheoryOfNekomata
6a78aecef8
Refactor groups
Make group management more readable.
пре 1 година
TheoryOfNekomata
73204c19df
Add hyphen option
Formal English hyphenates tens names.
пре 1 година
TheoryOfNekomata
0071c9d493
Fix stringify bugs
Address errors with gapped groups.
пре 1 година
TheoryOfNekomata
efe4291dce
Fix logic with no hundreds place between groups
Ensure digits parse correctly when there are gaps.
пре 1 година
TheoryOfNekomata
fd0ea31fe4
Refactor code
Make code more cleaner when parsing.
пре 1 година
TheoryOfNekomata
b57b7ac8ea
Format code
Format more sections of the code.
пре 1 година
TheoryOfNekomata
b0762fd47c
Update lint
Use ESLint for formatting.
пре 1 година
TheoryOfNekomata
4022962dc5
Rewrite package
Include parse and stringify functions for American short-count locale.
пре 1 година
TheoryOfNekomata
7a890bbeef
Trim input, update TODO
The inputs are now trimmed before conversion.
The TODO items are updated for possible correct formats.
пре 3 година
TheoryOfNekomata
3f79f6f9fe
Add example
The example Website shall be used to showcase the capabilities of
Numerica.
пре 3 година
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).
пре 3 година
TheoryOfNekomata
1b45838a64
Reimplement tests from archive
Make sure cases from chongo are accounted for.
пре 3 година
TheoryOfNekomata
33201e4020
Initial commit
Add files from pridepack.
пре 3 година