Skip to content

Latest commit

 

History

68 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

仓库 files navigation

<img src=“https://github.com/jduff/numerizer/actions/workflows/test.yaml/badge.svg?branch=master” alt=“Build Status” />

Numerizer is a gem to help with parsing numbers in natural language from strings (ex forty two). It was extracted from the awesome Chronic gem github.com/mojombo/chronic.

$ gem install numerizer
>> require 'numerizer'
=> true
>> Numerizer.numerize('forty two')
=> "42"
>> Numerizer.numerize('two and a half')
=> "2.5"
>> Numerizer.numerize('three quarters')
=> "3/4"
>> Numerizer.numerize('two and three eighths')
=> "2.375"

Tom Preston-Werner, John Duff

关于

Parse numbers in natural language from strings (ex forty two).

Resources

Stars

38 stars

关注者

2 watching

复刻s

发布

Used by

贡献者

Languages