Geotext extracts country and city mentions from text
Free software: MIT license
Ported From: https://github.com/elyase/geotext
Documentation: https://geotext.readthedocs.org.
Add this line to your application's Gemfile:
gem 'geotext'
And then execute:
$ bundle
Or install it yourself as:
$ gem install geotext
require "geotext"
puts GeoText::parse("This should identify London, United Kingdom, British, Thai China, Moscow, etc")
Bug reports and pull requests are welcome on GitHub at https://github.com/mrzen/geotext.