number_parser
number_parser
Numerizer in crystal
It passes 100% numerizer tests.
Installation
Add this to your application's shard.yml
:
dependencies:
number_parser:
github: mhib/number_parser
Usage
require "number_parser"
>> NumberParser.parse('forty two')
=> "42"
>> NumberParser.parse('two and a half')
=> "2.5"
>> NumberParser.parse('three quarters')
=> "3/4"
>> NumberParser.parse('two and three eighths')
=> "2.375"
Contributing
- Fork it (https://github.com/mhib/number_parser/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- mhib Marcin Henryk Bartkowiak - creator, maintainer
Repository
number_parser
Owner
Statistic
- 1
- 0
- 1
- 1
- 0
- over 3 years ago
- August 27, 2018
License
MIT License
Links
Synced at
Sat, 21 Dec 2024 21:02:57 GMT
Languages