Numerizer in crystal
It passes 100% numerizer tests.
Add this to your application's shard.yml
:
dependencies:
number_parser:
github: mhib/number_parser
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"
- 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
- mhib Marcin Henryk Bartkowiak - creator, maintainer