wordnik 0.4.7 → 4.06.00

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,9 +25,17 @@ module Wordnik
25
25
  # TODO: If body is XML, parse it
26
26
  # Otherwise return raw string
27
27
  def body
28
- JSON.parse raw.body#.encode(::Encoding::UTF_8, undef: :replace)
29
- rescue
30
- raw.body#.encode(::Encoding::UTF_8, undef: :replace)
28
+
29
+ if self.code > 399
30
+ raise AuthorizationError, raw.inspect
31
+ end
32
+
33
+ begin
34
+ JSON.parse raw.body
35
+ rescue
36
+ raw.body
37
+ end
38
+
31
39
  end
32
40
 
33
41
  def headers
@@ -1,3 +1,4 @@
1
1
  module Wordnik
2
- VERSION = "0.4.7"
2
+ VERSION = "4.06.00"
3
3
  end
4
+
@@ -10,18 +10,22 @@ describe Wordnik::OperationParameter do
10
10
  @operation_parameter = Wordnik::OperationParameter.new(JSON.parse(@response.body)['endPoints'].first['operations'].first['parameters'].first)
11
11
  end
12
12
 
13
- describe "initialization" do
14
-
15
- it "successfully initializes" do
16
- @operation_parameter.should respond_to(:name)
17
- @operation_parameter.should respond_to(:description)
18
- @operation_parameter.should respond_to(:required)
19
- @operation_parameter.should respond_to(:param_type)
20
- @operation_parameter.should respond_to(:default_value)
21
- @operation_parameter.should respond_to(:allowable_values)
22
- @operation_parameter.should respond_to(:param_access)
23
- end
24
-
13
+ it "initializes" do
14
+ @operation_parameter.should respond_to(:name)
15
+ @operation_parameter.should respond_to(:description)
16
+ @operation_parameter.should respond_to(:required)
17
+ @operation_parameter.should respond_to(:param_type)
18
+ @operation_parameter.should respond_to(:default_value)
19
+ @operation_parameter.should respond_to(:allowable_values)
20
+ @operation_parameter.should respond_to(:param_access)
25
21
  end
22
+
23
+ it "has a human name"
24
+
25
+ it "detects if its allowable values are delimited as an array"
26
+
27
+ it "is required if it's part of the path"
28
+
29
+ it "is positional if it's part of the path"
26
30
 
27
31
  end
@@ -34,5 +34,15 @@ describe Wordnik::Operation do
34
34
  @operation.get?.should == true
35
35
  end
36
36
  end
37
+
38
+ describe "positional parameter names" do
39
+
40
+ it "returns an empty array if there are no parameters" do
41
+ @operation.positional_parameter_names.should == ['word']
42
+ @operation.parameters = []
43
+ @operation.positional_parameter_names.should == []
44
+ end
45
+
46
+ end
37
47
 
38
48
  end
@@ -81,7 +81,7 @@ describe Wordnik::Resource do
81
81
  :user_id => Wordnik.configuration.user_id,
82
82
  :request_only => true
83
83
  }
84
- @request = Wordnik.word_lists.create_word_list(body)
84
+ @request = Wordnik.word_lists.create_word_list(body, :request_only => true)
85
85
  @request.body.should have_key(:name)
86
86
  @request.body.should have_key(:description)
87
87
  @request.body.should have_key(:type)
@@ -102,59 +102,4 @@ describe Wordnik::Resource do
102
102
 
103
103
  end
104
104
 
105
- context "wordlists" do
106
-
107
- before do
108
- configure_wordnik
109
- Wordnik.authenticate
110
- @permalink = "wordnik-ruby-test-list-#{RAND}"
111
- end
112
-
113
- it "creates a wordlist" do
114
- body = {
115
- :name => "Wordnik Ruby Test List #{RAND}",
116
- :description => 'This is created by the test suite.',
117
- :type => 'PUBLIC',
118
- :user_id => Wordnik.configuration.user_id,
119
- :request_only => true
120
- }
121
- request = Wordnik.word_lists.create_word_list(body)
122
- response = request.response
123
- response.body.should be_a_kind_of(Hash)
124
- response.body.should have_key('permalink')
125
- response.body['permalink'].should == @permalink
126
- end
127
-
128
- it "finds the new wordlist (method 1, using the wordList resource)" do
129
- list = Wordnik.word_list.get_word_list_by_id(@permalink)
130
- list.should have_key('permalink')
131
- list['permalink'].should == @permalink
132
- end
133
-
134
- it "finds the new wordlist (method 2, among user's wordlists)" do
135
- lists = Wordnik.account.get_word_lists_for_current_user
136
- permalinks = lists.map { |list| list['permalink'] }
137
- permalinks.should include(@permalink)
138
- end
139
-
140
- it "adds words to it" #do
141
- # body = [
142
- # {:word => 'foo'},
143
- # {:word => 'bar'},
144
- # {:word => 'metasyntactic'},
145
- # ]
146
- # request = Wordnik.word_list.post_words(@permalink, body)
147
- # # raise request.response.inspect
148
- #
149
- # list = Wordnik.word_list.get(@permalink)
150
- # # raise list.inspect
151
- # end
152
-
153
- it "updates words"
154
-
155
- it "get all the words"
156
-
157
- it "deletes a wordlist"
158
-
159
- end
160
105
  end
@@ -4,7 +4,7 @@ describe Wordnik::Response do
4
4
 
5
5
  before(:each) do
6
6
 
7
- VCR.use_cassette('default_response_request', :record => :new_episodes) do
7
+ VCR.use_cassette('default_response', :record => :new_episodes) do
8
8
  @raw = Typhoeus::Request.get("http://beta.wordnik.com/v4/word.json")
9
9
  end
10
10
 
@@ -26,6 +26,26 @@ describe Wordnik::Response do
26
26
  @response.headers['Wordnik-Api-Version'].to_s.should =~ /4\.0/
27
27
  end
28
28
 
29
+ end
30
+
31
+ describe "unauthorized" do
32
+
33
+ before do
34
+ VCR.use_cassette('unauthorized_response', :record => :new_episodes) do
35
+ @unauthorized_raw = Typhoeus::Request.get("http://beta.wordnik.com/v4/word.json/dog/images/flickr")
36
+ end
37
+ @response = Wordnik::Response.new(@unauthorized_raw)
38
+ end
39
+
40
+ it "sets a 401 status code" do
41
+ @response.code.should == 401
42
+ end
43
+
44
+ it "raises an error when body is called" do
45
+ expect { @response.body }.to raise_error(AuthorizationError)
46
+ end
47
+
48
+
29
49
  end
30
50
 
31
51
  describe "format" do
@@ -63,7 +83,7 @@ describe Wordnik::Response do
63
83
 
64
84
  it "has a pretty xml body" do
65
85
  VCR.use_cassette('xml_response_request', :record => :new_episodes) do
66
- @raw = Typhoeus::Request.get("http://beta.wordnik.com/v4/word.xml/help")
86
+ @raw = Typhoeus::Request.get("http://beta.wordnik.com/v4/word.xml")
67
87
  end
68
88
  @response = Wordnik::Response.new(@raw)
69
89
  @response.pretty_body.should =~ /\?xml/
@@ -40,6 +40,7 @@ def configure_wordnik
40
40
  config.username = CREDENTIALS[:username]
41
41
  config.password = CREDENTIALS[:password]
42
42
  config.base_uri = "beta.wordnik.com/v4"
43
+ # config.resource_names = %w(account corpus document partners system tag user users word words wordList wordLists)
43
44
  end
44
45
  end
45
46
 
@@ -19,7 +19,7 @@ describe Wordnik do
19
19
  end
20
20
 
21
21
  it "has as many resources as there are resource names" do
22
- Wordnik.resources.size.should == Wordnik.resource_names.size
22
+ Wordnik.resources.size.should == Wordnik.configuration.resource_names.size
23
23
  end
24
24
 
25
25
  it "assigns resource keys that match the resource names" do
@@ -55,7 +55,7 @@ describe Wordnik do
55
55
  config.password = 'wrong!'
56
56
  config.base_uri = "beta.wordnik.com/v4"
57
57
  end
58
- lambda { Wordnik.authenticate }.should raise_error(ApiServerError)
58
+ lambda { Wordnik.authenticate }.should raise_error(AuthorizationError)
59
59
  Wordnik.authenticated?.should == false
60
60
  end
61
61
 
@@ -25,7 +25,11 @@ Gem::Specification.new do |s|
25
25
  s.add_development_dependency 'vcr', '>=1.5.1'
26
26
  s.add_development_dependency 'webmock', '>=1.6.2'
27
27
 
28
- s.files = `git ls-files`.split("\n")
28
+ s.files = [
29
+ `git ls-files`,
30
+ `find api_docs -name '*.json'`,
31
+ `find lib/wordnik/resource_modules -name '*.rb'`,
32
+ ].flatten.join("\n").split("\n").uniq.select{|f| !f.empty? }
29
33
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
30
34
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
31
35
  s.require_paths = ["lib"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: wordnik
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.7
5
+ version: 4.06.00
6
6
  platform: ruby
7
7
  authors:
8
8
  - Zeke Sikelianos
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-05-16 00:00:00 -07:00
14
+ date: 2011-06-14 00:00:00 -07:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
@@ -130,20 +130,7 @@ files:
130
130
  - Gemfile.lock
131
131
  - README.md
132
132
  - Rakefile
133
- - USAGE.md
134
- - api_docs/account.json
135
- - api_docs/corpus.json
136
- - api_docs/document.json
137
- - api_docs/partners.json
138
- - api_docs/system.json
139
- - api_docs/tag.json
140
- - api_docs/user.json
141
- - api_docs/users.json
142
- - api_docs/word.json
143
- - api_docs/wordList.json
144
- - api_docs/wordLists.json
145
- - api_docs/wordoftheday.json
146
- - api_docs/words.json
133
+ - api_docs/.gitkeep
147
134
  - config/pretty_print.xsl
148
135
  - lib/wordnik.rb
149
136
  - lib/wordnik/configuration.rb
@@ -152,13 +139,7 @@ files:
152
139
  - lib/wordnik/operation_parameter.rb
153
140
  - lib/wordnik/request.rb
154
141
  - lib/wordnik/resource.rb
155
- - lib/wordnik/resource_modules/account.rb
156
- - lib/wordnik/resource_modules/system.rb
157
- - lib/wordnik/resource_modules/user.rb
158
- - lib/wordnik/resource_modules/word.rb
159
- - lib/wordnik/resource_modules/word_list.rb
160
- - lib/wordnik/resource_modules/word_lists.rb
161
- - lib/wordnik/resource_modules/words.rb
142
+ - lib/wordnik/resource_modules/.gitkeep
162
143
  - lib/wordnik/response.rb
163
144
  - lib/wordnik/version.rb
164
145
  - spec/active_support_spec.rb
@@ -172,6 +153,30 @@ files:
172
153
  - spec/spec_helper.rb
173
154
  - spec/wordnik_spec.rb
174
155
  - wordnik.gemspec
156
+ - api_docs/account.json
157
+ - api_docs/corpus.json
158
+ - api_docs/document.json
159
+ - api_docs/partners.json
160
+ - api_docs/system.json
161
+ - api_docs/tag.json
162
+ - api_docs/user.json
163
+ - api_docs/users.json
164
+ - api_docs/word.json
165
+ - api_docs/wordList.json
166
+ - api_docs/wordLists.json
167
+ - api_docs/words.json
168
+ - lib/wordnik/resource_modules/account.rb
169
+ - lib/wordnik/resource_modules/corpus.rb
170
+ - lib/wordnik/resource_modules/document.rb
171
+ - lib/wordnik/resource_modules/partners.rb
172
+ - lib/wordnik/resource_modules/system.rb
173
+ - lib/wordnik/resource_modules/tag.rb
174
+ - lib/wordnik/resource_modules/user.rb
175
+ - lib/wordnik/resource_modules/users.rb
176
+ - lib/wordnik/resource_modules/word.rb
177
+ - lib/wordnik/resource_modules/word_list.rb
178
+ - lib/wordnik/resource_modules/word_lists.rb
179
+ - lib/wordnik/resource_modules/words.rb
175
180
  has_rdoc: true
176
181
  homepage: http://developer.wordnik.com
177
182
  licenses: []
data/USAGE.md DELETED
@@ -1,298 +0,0 @@
1
-
2
- account
3
- =======
4
-
5
- [Wordnik.account.authenticate(username)](http://developer.wordnik.com/docs/#!/account/authenticate)
6
- :password* The user's password
7
-
8
- [Wordnik.account.get_api_token_status()](http://developer.wordnik.com/docs/#!/account/get_api_token_status)
9
- :api_key* Wordnik authentication token
10
-
11
- [Wordnik.account.get_username_available(username)](http://developer.wordnik.com/docs/#!/account/get_username_available)
12
-
13
- [Wordnik.account.create_api_account()](http://developer.wordnik.com/docs/#!/account/create_api_account)
14
- :api_key* API Key
15
-
16
- [Wordnik.account.authenticate_post(username)](http://developer.wordnik.com/docs/#!/account/authenticate_post)
17
- :body* The user's password
18
-
19
- [Wordnik.account.get_logged_in_user()](http://developer.wordnik.com/docs/#!/account/get_logged_in_user)
20
- :api_key* API Key
21
- :auth_token* The auth token of the logged-in user, obtained by calling /account.{format}/authenticate/{username} (described above)
22
-
23
- [Wordnik.account.get_word_lists_for_current_user()](http://developer.wordnik.com/docs/#!/account/get_word_lists_for_current_user)
24
- :api_key* API Key
25
- :auth_token* auth_token of logged-in user
26
- :skip Results to skip
27
- :limit Maximum number of results to return
28
-
29
-
30
- system
31
- ======
32
-
33
- [Wordnik.system.get_word_by_id()](http://developer.wordnik.com/docs/#!/system/get_word_by_id)
34
- :term Term to query
35
- :object_type Object type
36
- :exclude_edge_types Relationships to exclude
37
- :include_edge_types Specifies the only relationship to include (note, this overrides the exclusions)
38
- :start_constraints Edge start constraints to enforce
39
- :end_constraints Edge end constraints to enforce
40
- :max_hops Maximum number of to route
41
- :max_results Maximum number of routes to return
42
- :destination Destination to route to (VERY inefficient)
43
- :use_graph_ml Return is GraphML format
44
-
45
-
46
- user
47
- ====
48
-
49
- [Wordnik.user.get_word_of_the_day_by_date(username, date)](http://developer.wordnik.com/docs/#!/user/get_word_of_the_day_by_date)
50
- :include_all Include WordOfTheDay items for future dates (owner-only)
51
-
52
- [Wordnik.user.get_word_of_the_day_list(username)](http://developer.wordnik.com/docs/#!/user/get_word_of_the_day_list)
53
- :include_all Include future words (owner-only)
54
-
55
- [Wordnik.user.update_word_of_the_day_list(username)](http://developer.wordnik.com/docs/#!/user/update_word_of_the_day_list)
56
- :body* Updated WordOfTheDayList data in the format specified by the URL
57
-
58
- [Wordnik.user.create_word_of_the_day_list(username)](http://developer.wordnik.com/docs/#!/user/create_word_of_the_day_list)
59
- :body* WordOfTheDayList to create, provided in the format specified by the URL
60
-
61
- [Wordnik.user.update_item_in_word_of_the_day_list(username, permalink)](http://developer.wordnik.com/docs/#!/user/update_item_in_word_of_the_day_list)
62
- :body* WordOfTheDay to add, in the format specified by the URL
63
-
64
- [Wordnik.user.update_word_of_the_day_list(username, permalink)](http://developer.wordnik.com/docs/#!/user/update_word_of_the_day_list)
65
-
66
- [Wordnik.user.delete_word_from_word_of_the_day_list(username, permalink, wordToDelete)](http://developer.wordnik.com/docs/#!/user/delete_word_from_word_of_the_day_list)
67
-
68
- [Wordnik.user.add_word_to_word_of_the_day_list(username, permalink)](http://developer.wordnik.com/docs/#!/user/add_word_to_word_of_the_day_list)
69
- :body* WordOfTheDay to add
70
-
71
-
72
- word
73
- ====
74
-
75
- [Wordnik.word.get_word(word)](http://developer.wordnik.com/docs/#!/word/get_word)
76
- :use_canonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
77
- :include_suggestions Return suggestions (for correct spelling, case variants, etc.)
78
-
79
- [Wordnik.word.get_examples(word)](http://developer.wordnik.com/docs/#!/word/get_examples)
80
- :limit Maximum number of results to return
81
- :include_duplicates Show duplicate examples from different sources
82
- :content_provider Return results from a specific ContentProvider
83
- :use_canonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
84
- :skip Results to skip
85
- :limit Maximum number of results to return
86
-
87
- [Wordnik.word.get_definitions(word)](http://developer.wordnik.com/docs/#!/word/get_definitions)
88
- :limit Maximum number of results to return
89
- :part_of_speech CSV list of part-of-speech types
90
- :include_related Return related words with definitions
91
- :source_dictionaries Gets from dictionaries in the supplied order of precedence
92
- :use_canonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
93
- :include_tags Return a closed set of XML tags in response
94
-
95
- [Wordnik.word.get_word_frequency(word)](http://developer.wordnik.com/docs/#!/word/get_word_frequency)
96
- :use_canonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
97
- :start_year Starting Year
98
- :end_year Ending Year
99
-
100
- [Wordnik.word.get_top_example(word)](http://developer.wordnik.com/docs/#!/word/get_top_example)
101
- :content_provider Return results from a specific ContentProvider
102
- :use_canonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
103
-
104
- [Wordnik.word.get_related_words(word)](http://developer.wordnik.com/docs/#!/word/get_related_words)
105
- :part_of_speech CSV list of part-of-speech types
106
- :source_dictionary Get data from a single dictionary. Valid options are ahd, century, wiktionary, webster, and wordnet.
107
- :limit Maximum number of results to return
108
- :use_canonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
109
- :type Relationship type
110
-
111
- [Wordnik.word.get_phrases(word)](http://developer.wordnik.com/docs/#!/word/get_phrases)
112
- :limit Maximum number of results to return
113
- :wlmi Minimum WLMI for the phrase
114
- :use_canonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
115
-
116
- [Wordnik.word.get_hyphenation(word)](http://developer.wordnik.com/docs/#!/word/get_hyphenation)
117
- :use_canonical If true will try to return a correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
118
- :source_dictionary Get from a single dictionary. Valid options: ahd, century, wiktionary, webster, and wordnet.
119
- :limit Maximum number of results to return
120
-
121
- [Wordnik.word.get_text_pronunciations(word)](http://developer.wordnik.com/docs/#!/word/get_text_pronunciations)
122
- :use_canonical If true will try to return a correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
123
- :source_dictionary Get from a single dictionary.
124
- :type_format Text pronunciation type
125
- :limit Maximum number of results to return
126
-
127
- [Wordnik.word.get_word_forms(word)](http://developer.wordnik.com/docs/#!/word/get_word_forms)
128
- :use_canonical If true will try to return a correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
129
-
130
- [Wordnik.word.get_audio(word)](http://developer.wordnik.com/docs/#!/word/get_audio)
131
- :use_canonical Use the canonical form of the word.
132
- :limit Maximum number of results to return
133
-
134
- [Wordnik.word.contextual_lookup(word)](http://developer.wordnik.com/docs/#!/word/contextual_lookup)
135
- :sentence* The sentence in which the word occurs
136
- :offset The start character offset of the word in the given sentence
137
- :expand_terms Expand context terms using related words
138
- :include_source_dictionaries Only include these comma-delimited source dictionaries
139
- :exclude_source_dictionaries Exclude these comma-delimited source dictionaries
140
- :skip Results to skip
141
- :limit Maximum number of results to return
142
-
143
- [Wordnik.word.contextual_lookup_post(word)](http://developer.wordnik.com/docs/#!/word/contextual_lookup_post)
144
- :body* The sentence in which the word occurs
145
- :offset The start character offset of the word in the given sentence
146
- :expand_terms Expand context terms using related words
147
- :include_source_dictionaries Only include these comma-delimited source dictionaries
148
- :exclude_source_dictionaries Exclude these comma-delimited source dictionaries
149
- :skip Results to skip
150
- :limit Maximum number of results to return
151
-
152
-
153
- words
154
- =====
155
-
156
- [Wordnik.words.get_random_word()](http://developer.wordnik.com/docs/#!/words/get_random_word)
157
- :has_dictionary_def Only return words with dictionary definitions
158
- :include_part_of_speech CSV part-of-speech values to include
159
- :exclude_part_of_speech CSV part-of-speech values to exclude
160
- :min_corpus_count Minimum corpus frequency for terms
161
- :max_corpus_count Maximum corpus frequency for terms
162
- :min_dictionary_count Minimum dictionary count
163
- :max_dictionary_count Maximum dictionary count
164
- :min_length Minimum word length
165
- :max_length Maximum word length
166
-
167
- [Wordnik.words.get_random_words()](http://developer.wordnik.com/docs/#!/words/get_random_words)
168
- :has_dictionary_def Only return words with dictionary definitions
169
- :include_part_of_speech CSV part-of-speech values to include
170
- :exclude_part_of_speech CSV part-of-speech values to exclude
171
- :min_corpus_count Minimum corpus frequency for terms (integer)
172
- :max_corpus_count Maximum corpus frequency for terms (integer)
173
- :min_dictionary_count Minimum dictionary count (integer)
174
- :max_dictionary_count Maximum dictionary count (integer)
175
- :min_length Minimum word length (characters)
176
- :max_length Maximum word length (characters)
177
- :sort_by Attribute to sort by
178
- :sort_order Sort direction
179
- :limit Maximum number of results to return (integer)
180
-
181
- [Wordnik.words.search_words()](http://developer.wordnik.com/docs/#!/words/search_words)
182
- :query* Search term
183
- :case_sensitive Search case sensitive
184
- :include_part_of_speech Only include these comma-delimited parts of speech
185
- :exclude_part_of_speech Exclude these comma-delimited parts of speech
186
- :min_corpus_count Minimum corpus frequency for terms
187
- :max_corpus_count Maximum corpus frequency for terms
188
- :min_dictionary_count Minimum number of dictionary entries
189
- :max_dictionary_count Maximum dictionary count
190
- :min_length Minimum word length
191
- :max_length Maximum word length
192
- :skip Results to skip
193
- :limit Maximum number of results to return
194
-
195
- [Wordnik.words.get_word_of_the_day_lists_containing_word()](http://developer.wordnik.com/docs/#!/words/get_word_of_the_day_lists_containing_word)
196
- :item_count* Lists must have the specified number of items
197
- :contains_word Lists must contain a specific word
198
- :subscriber_count Lists must have the specified number of subscribers
199
- :include_all Returns future WordOfTheDay items
200
-
201
- [Wordnik.words.get_word_of_the_day_lists_for_date(date)](http://developer.wordnik.com/docs/#!/words/get_word_of_the_day_lists_for_date)
202
- :include_all Returns future WordOfTheDay items
203
-
204
- [Wordnik.words.subscribe_to_list(permalink)](http://developer.wordnik.com/docs/#!/words/subscribe_to_list)
205
- :auth_token* auth_token of logged-in user
206
- :medium Medium to subscribe with
207
- :body Username to subscribe
208
-
209
- [Wordnik.words.search_definitions()](http://developer.wordnik.com/docs/#!/words/search_definitions)
210
- :query* Search term
211
- :defined_word_search_term Defined word search term
212
- :include_source_dictionaries Only include these comma-delimited source dictionaries
213
- :exclude_source_dictionaries Exclude these comma-delimited source dictionaries
214
- :include_part_of_speech Only include these comma-delimited parts of speech
215
- :exclude_part_of_speech Exclude these comma-delimited parts of speech
216
- :min_corpus_count Minimum corpus frequency for terms
217
- :max_corpus_count Maximum corpus frequency for terms
218
- :min_length Minimum word length
219
- :max_length Maximum word length
220
- :expand_terms Expand terms
221
- :word_types Word types
222
- :include_tags Return a closed set of XML tags in response
223
- :sort_by Attribute to sort by
224
- :sort_order Sort direction
225
- :skip Results to skip
226
- :limit Maximum number of results to return
227
-
228
- [Wordnik.words.search_entries()](http://developer.wordnik.com/docs/#!/words/search_entries)
229
- :query* Search term
230
- :skip Results to skip
231
- :limit Maximum number of results to return
232
-
233
- [Wordnik.words.get_surface_forms()](http://developer.wordnik.com/docs/#!/words/get_surface_forms)
234
- :term Word to get surface forms for.
235
-
236
- [Wordnik.words.get_word_of_the_day()](http://developer.wordnik.com/docs/#!/words/get_word_of_the_day)
237
- :date Fetches by date in yyyy-MM-dd
238
- :category Filters response by category
239
- :creator Filters response by username
240
-
241
- [Wordnik.words.get_word_of_the_day_range()](http://developer.wordnik.com/docs/#!/words/get_word_of_the_day_range)
242
- :category Filters response by category
243
- :creator Filters response by username
244
- :provider Filters response by ContentProvider
245
- :skip Results to skip
246
- :limit Maximum number of results to return
247
-
248
- [Wordnik.words.get_word_of_the_day_list(permalink)](http://developer.wordnik.com/docs/#!/words/get_word_of_the_day_list)
249
- :include_all Returns future WordOfTheDay items
250
-
251
- [Wordnik.words.get_word_of_the_day_list_item(permalink, specifier)](http://developer.wordnik.com/docs/#!/words/get_word_of_the_day_list_item)
252
-
253
- [Wordnik.words.get_recent_word_of_the_day_lists()](http://developer.wordnik.com/docs/#!/words/get_recent_word_of_the_day_lists)
254
- :skip Results to skip
255
- :limit Maximum number of results to return
256
-
257
- [Wordnik.words.get_word_of_the_day_list_subscription_process_status()](http://developer.wordnik.com/docs/#!/words/get_word_of_the_day_list_subscription_process_status)
258
- :date Date string to fetch for.
259
-
260
-
261
- word_list
262
- =========
263
-
264
- [Wordnik.word_list.get_word_list_by_id(wordListId)](http://developer.wordnik.com/docs/#!/word_list/get_word_list_by_id)
265
- :auth_token* The auth token of the logged-in user, obtained by calling /account.{format}/authenticate/{username} (described above)
266
-
267
- [Wordnik.word_list.get_word_list_words(wordListId)](http://developer.wordnik.com/docs/#!/word_list/get_word_list_words)
268
- :auth_token* The auth token of the logged-in user, obtained by calling /account.{format}/authenticate/{username} (described above)
269
- :sort_by Field to sort by
270
- :sort_order Direction to sort
271
- :skip Results to skip
272
- :limit Maximum number of results to return
273
-
274
- [Wordnik.word_list.add_words_to_word_list(wordListId)](http://developer.wordnik.com/docs/#!/word_list/add_words_to_word_list)
275
- :auth_token* The auth token of the logged-in user, obtained by calling /account.{format}/authenticate/{username} (described above)
276
- :body Words to add to WordList
277
-
278
- [Wordnik.word_list.update_word_list(wordListId)](http://developer.wordnik.com/docs/#!/word_list/update_word_list)
279
- :auth_token* The auth token of the logged-in user, obtained by calling /account.{format}/authenticate/{username} (described above)
280
- :body Updated WordList
281
-
282
- [Wordnik.word_list.delete_word_list(wordListId)](http://developer.wordnik.com/docs/#!/word_list/delete_word_list)
283
- :auth_token* The auth token of the logged-in user, obtained by calling /account.{format}/authenticate/{username} (described above)
284
-
285
- [Wordnik.word_list.delete_words_from_word_list(wordListId)](http://developer.wordnik.com/docs/#!/word_list/delete_words_from_word_list)
286
- :auth_token* The auth token of the logged-in user, obtained by calling /account.{format}/authenticate/{username} (described above)
287
- :body Words to remove from WordList
288
-
289
-
290
- word_lists
291
- ==========
292
-
293
- [Wordnik.word_lists.get_help()](http://developer.wordnik.com/docs/#!/word_lists/get_help)
294
-
295
- [Wordnik.word_lists.create_word_list()](http://developer.wordnik.com/docs/#!/word_lists/create_word_list)
296
- :auth_token* The auth token of the logged-in user, obtained by calling /account.{format}/authenticate/{username} (described above)
297
- :body WordList to create
298
-