Wrapper for unofficial Google Dictionary API. Fetch meanings and part of speech of any
word of any language.
You can find the list of supported languages (over 90)
in separated file
Run gem install vocabulary
or
Just add to your Gemfile:
gem "vocabulary"
Examples:
word = Vocabulary::lookup("kaunis", :fi)
word.part_of_speech
=> "adjective"
word.meanings
=> ["beautiful", "lovely", "pretty", "handsome", "fine", "nice", "fair"]
word = Vocabulary::lookup("яблоко", :ru)
word.part_of_speech
=> "noun"
word.meanings
=> ["apple"]
You can fetch meanings in any language:
word = Vocabulary::lookup("apple", :en, :ru)
word.part_of_speech
=> "noun"
word.meanings
=> ["яблоко", "яблоня", "лесть", "чепуха"]
Please read Code of Conduct and Contributing Guidelines for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Kir Shatrov - Initial work
See also the list of contributors who participated in this project.
This project is licensed under the MIT License.