No commit activity in last 3 years
No release in over 3 years
A ruby gem that wraps pearson dictionary API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 5.0
~> 10
 Project Readme

Dictionary Lookup

Gem Version Build Status

A ruby gem that wraps Pearson dictionary API

Getting started

You can add it to your Gemfile with:

gem 'dictionary_lookup'

or

You can install it directly

gem install dictionary_lookup

and then require it

require 'dictionary_lookup'

Usage

You can lookup a word definition by:

results = DictionaryLookup::Base.define("hello")

results will contain an array of DictionaryLookup::Definition objects.

results.count # => 1
results.first.part_of_speech # => "noun"
results.first.denotation # => "used as a greeting when you see or meet someone"
results.first.examples # => ["Hello, John! How are you?"]

You can specify different dictionary by passing dictionary in config hash. List of available dictionaries could be found here

results = DictionaryLookup::Base.define("hello", {dictionary: "wordwise"})