Client for the APIs of open philology projects like Perseus and Perseids.
Add this line to your application's Gemfile:
gem 'open_philology_client'
And then execute:
$ bundle
Or install it yourself as:
$ gem install open_philology_client
morphology = OpenPhilologyClient::Morphology.new
morphology.analyse_word("latin_word_to_analyse")
To provide a custom base url use:
morphology = OpenPhilologyClient::Morphology.new('base url')
The return value of analyse_word
is a nested dictionary.
If the word is not found nil
is returned.
The documentation for the morphological analysis service can be found here.
- 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