Rundown
Rundown is a simple Natural Language Processor built with Ruby, inspired by Knwl.js. Rundown scans through text, user data, or just about anything for likely data of interest, phone numbers, dates, locations, emails, times, as well as likelyhood of spam and overall emotion.
Installation
Add this line to your application's Gemfile:
gem 'rundown'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rundown
Usage
rd = Rundown.parse("I'll see you on the 18th, give me a ring on 07912 345 678. - Jerertt, [email protected]")
rd.emails
=> ["[email protected]"]
rd.phones
=> ["07912 345 678"]
rd.sentiment
=> -0.5333
rd.dates
=> [#<Date: 2013-12-18>]
Contributing
- Fork it
- 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 new Pull Request
Known Issues
- Phone numbers need country code
Licence
Project released under an MIT license.