Wordniky 1.0.0.pre.beta.1

Sign up to get free protection for your applications and to get access to all the features.
data/spec/api_spec.rb ADDED
@@ -0,0 +1,200 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../lib/wordnik'
4
+ require 'vcr'
5
+ require 'rspec'
6
+ require 'faraday'
7
+
8
+ RSpec.configure do |config|
9
+ # some (optional) config here
10
+ end
11
+
12
+ configuration = Wordnik::Configuration.new
13
+
14
+ VCR.configure do |config|
15
+ config.cassette_library_dir = 'spec/vcr'
16
+ config.hook_into :faraday
17
+ config.filter_sensitive_data('API_KEY') do |_interaction|
18
+ configuration.api_key
19
+ end
20
+ end
21
+
22
+ client = Wordnik::Client.new(http_client: Faraday.new('https://api.wordnik.com'))
23
+ dirty_client = Wordnik::Client.new(http_client: Faraday.new('https://api.wordnik.com'), clean_up: false)
24
+
25
+ describe Wordnik::Client do
26
+ it 'should have a configuration' do
27
+ expect(client.configuration).to be_a Wordnik::Configuration
28
+ end
29
+
30
+ it 'should be able to get the wotd' do
31
+ VCR.use_cassette('wotd') do
32
+ expect(client.wotd[:word]).to be_a String
33
+ end
34
+ end
35
+
36
+ it 'should be able to get the word of the day' do
37
+ VCR.use_cassette('word_of_the_day') do
38
+ expect(client.word_of_the_day[:word]).to be_a String
39
+ end
40
+ end
41
+
42
+ it 'should be able to get definitions' do
43
+ VCR.use_cassette('definitions') do
44
+ expect(client.definitions('ruby').first).to be_a Hash
45
+ end
46
+ end
47
+
48
+ it 'should be able to limit definitions to specific parts of speech' do
49
+ VCR.use_cassette('definitions_noun') do
50
+ defs = client.definitions('fish', part_of_speech: 'noun')
51
+ parts_of_speech = defs.map { |d| d[:part_of_speech] }.uniq
52
+ expect(parts_of_speech).to eq ['noun']
53
+ end
54
+ end
55
+
56
+ it 'should be able to limit definitions to specific sources' do
57
+ VCR.use_cassette('definitions_sources') do
58
+ defs = client.definitions('ruby', source_dictionaries: 'ahd-5')
59
+ sources = defs.map { |d| d[:source_dictionary] }.uniq
60
+ expect(sources).to eq ['ahd-5']
61
+ end
62
+ end
63
+
64
+ it 'should be able to limit the number of definitions returned' do
65
+ VCR.use_cassette('definitions_limit') do
66
+ defs = client.definitions('set', limit: 3)
67
+ expect(defs.size).to eq 3
68
+ end
69
+ end
70
+
71
+ it 'should be able to get examples' do
72
+ VCR.use_cassette('examples') do
73
+ expect(client.examples('ruby')).to be_an Array
74
+ end
75
+ end
76
+
77
+ it 'should be able to get related words' do
78
+ VCR.use_cassette('related_words') do
79
+ expect(client.related_words('ruby')).to be_an Array
80
+ end
81
+ end
82
+
83
+ it 'should be able to get top example' do
84
+ VCR.use_cassette('top_example') do
85
+ expect(client.top_example('ruby')).to be_a Hash
86
+ end
87
+ end
88
+
89
+ it 'should be able to get random word' do
90
+ VCR.use_cassette('random_word') do
91
+ expect(client.random_word).to be_a String
92
+ end
93
+ end
94
+
95
+ it 'should be able to get scrabble score' do
96
+ VCR.use_cassette('scrabble_score') do
97
+ expect(client.scrabble_score('ruby')).to be_an Integer
98
+ end
99
+ end
100
+
101
+ it 'should return a zero scrabble score for an non-Scrabble word' do
102
+ VCR.use_cassette('scrabble_score_0') do
103
+ expect(client.scrabble_score('asdfasdfasdf')).to eq 0
104
+ end
105
+ end
106
+
107
+ it 'should be able to get hyphenation' do
108
+ VCR.use_cassette('hyphenation') do
109
+ expect(client.hyphenation('ruby')).to be_an Array
110
+ end
111
+ end
112
+
113
+ it 'should be able to get pronunciations' do
114
+ VCR.use_cassette('pronunciations') do
115
+ expect(client.pronunciations('ruby')).to be_an Array
116
+ end
117
+ end
118
+
119
+ it 'should be able to get frequency' do
120
+ VCR.use_cassette('frequency') do
121
+ freqs = client.frequency('ruby')
122
+ expect(freqs).to be_an Array
123
+ expect(freqs.first).to be_a Hash
124
+ expect(freqs.first[:year]).to be_an Integer
125
+ expect(freqs.first[:count]).to be_an Integer
126
+ end
127
+ end
128
+
129
+ it 'should be able to get non-cleanuped data for frequency' do
130
+ VCR.use_cassette('frequency_dirty') do
131
+ freqs = dirty_client.frequency('ruby')
132
+ expect(freqs).to be_an Hash
133
+ freqs = freqs[:frequency]
134
+ expect(freqs.first).to be_a Hash
135
+ expect(freqs.first[:year]).to be_an String
136
+ expect(freqs.first[:count]).to be_an Integer
137
+ end
138
+ end
139
+
140
+ it 'should be able to get phrases' do
141
+ VCR.use_cassette('phrases') do
142
+ expect(client.phrases('ruby')).to be_an Array
143
+ end
144
+ end
145
+
146
+ # The etymologies endpoint has been removed from this version of the API
147
+ # it "should be able to get etymologies" do
148
+ # VCR.use_cassette('etymologies') do
149
+ # expect(client.etymologies('ruby')).to be_an Array
150
+ # end
151
+ # end
152
+
153
+ it 'should be able to get random words' do
154
+ VCR.use_cassette('random_words') do
155
+ expect(client.random_words).to be_an Array
156
+ end
157
+ end
158
+
159
+ it 'should be able to get audio' do
160
+ VCR.use_cassette('audio') do
161
+ expect(client.audio('ruby')).to be_an Array
162
+ end
163
+ end
164
+
165
+ it 'should be able to get rhymes' do
166
+ VCR.use_cassette('rhymes') do
167
+ expect(client.rhymes('ruby')).to be_an Array
168
+ end
169
+ end
170
+
171
+ it 'should be able to get antonyms' do
172
+ VCR.use_cassette('antonyms') do
173
+ expect(client.antonyms('ugly')).to be_an Array
174
+ end
175
+ end
176
+
177
+ it 'should be able to get synonyms' do
178
+ VCR.use_cassette('synonyms') do
179
+ expect(client.synonyms('ugly')).to be_an Array
180
+ end
181
+ end
182
+
183
+ it 'should be able to get hypernyms' do
184
+ VCR.use_cassette('hypernyms') do
185
+ expect(client.hypernyms('dog')).to be_an Array
186
+ end
187
+ end
188
+
189
+ it 'should be able to get hyponyms' do
190
+ VCR.use_cassette('hyponyms') do
191
+ expect(client.hyponyms('mammal')).to be_an Array
192
+ end
193
+ end
194
+
195
+ it 'should be able to get equivalents' do
196
+ VCR.use_cassette('equivalents') do
197
+ expect(client.equivalents('happy')).to be_an Array
198
+ end
199
+ end
200
+ end
data/spec/util_spec.rb ADDED
@@ -0,0 +1,120 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rspec'
4
+ require_relative '../lib/wordnik'
5
+
6
+ RSpec.describe Wordnik do
7
+ describe '.to_timestamp_or_string' do
8
+ it 'converts ISO 8601 string to Time' do
9
+ expect(Wordnik.to_timestamp_or_string('2023-10-01T12:34:56Z')).to eq(Time.parse('2023-10-01T12:34:56Z'))
10
+ end
11
+
12
+ it 'converts date string to Date' do
13
+ expect(Wordnik.to_timestamp_or_string('2023-10-01')).to eq(Date.parse('2023-10-01'))
14
+ end
15
+
16
+ it 'returns the original string if not a date or time' do
17
+ expect(Wordnik.to_timestamp_or_string('random_string')).to eq('random_string')
18
+ end
19
+
20
+ it 'returns the original object if not a string' do
21
+ expect(Wordnik.to_timestamp_or_string(123)).to eq(123)
22
+ end
23
+ end
24
+
25
+ describe '.capitalize_simple' do
26
+ it 'capitalizes the first letter of a string' do
27
+ expect(Wordnik.capitalize_simple('hello')).to eq('Hello')
28
+ end
29
+
30
+ it 'returns the string unchanged if already capitalized' do
31
+ expect(Wordnik.capitalize_simple('Hello')).to eq('Hello')
32
+ end
33
+
34
+ it 'returns an empty string if given an empty string' do
35
+ expect(Wordnik.capitalize_simple('')).to eq('')
36
+ end
37
+ end
38
+
39
+ describe '.lowercase_simple' do
40
+ it 'lowercases the first letter of a string' do
41
+ expect(Wordnik.lowercase_simple('Hello')).to eq('hello')
42
+ end
43
+
44
+ it 'returns the string unchanged if already lowercase' do
45
+ expect(Wordnik.lowercase_simple('hello')).to eq('hello')
46
+ end
47
+
48
+ it 'returns an empty string if given an empty string' do
49
+ expect(Wordnik.lowercase_simple('')).to eq('')
50
+ end
51
+ end
52
+
53
+ describe '.to_underscore' do
54
+ it 'converts CamelCase to snake_case' do
55
+ expect(Wordnik.to_underscore('WordNik')).to eq('word_nik')
56
+ end
57
+
58
+ it 'converts module names to paths' do
59
+ expect(Wordnik.to_underscore('Word::Nik')).to eq('word/nik')
60
+ end
61
+
62
+ it 'replaces dashes with underscores' do
63
+ expect(Wordnik.to_underscore('word-nik')).to eq('word_nik')
64
+ end
65
+ end
66
+
67
+ describe '.to_camel' do
68
+ it 'converts snake_case to camelCase' do
69
+ expect(Wordnik.to_camel('word_nik')).to eq('wordNik')
70
+ end
71
+
72
+ it 'converts snake_case with multiple underscores to camelCase' do
73
+ expect(Wordnik.to_camel('word_nik_example')).to eq('wordNikExample')
74
+ end
75
+
76
+ it 'returns an empty string if given an empty string' do
77
+ expect(Wordnik.to_camel('')).to eq('')
78
+ end
79
+ end
80
+
81
+ describe '.to_snake_case' do
82
+ it 'converts hash keys to snake_case' do
83
+ hash = { 'CamelCaseKey' => 'value', 'AnotherKey' => { 'NestedKey' => 'nested_value' } }
84
+ expected = { camel_case_key: 'value', another_key: { nested_key: 'nested_value' } }
85
+ expect(Wordnik.to_snake_case(hash)).to eq(expected)
86
+ end
87
+
88
+ it 'returns arrays unchanged' do
89
+ array = %w[CamelCaseKey AnotherKey]
90
+ expected_array = %w[CamelCaseKey AnotherKey]
91
+ expect(Wordnik.to_snake_case(array)).to eq(expected_array)
92
+ end
93
+
94
+ it 'handles nested arrays and hashes' do
95
+ hash = { 'CamelCaseKey' => [{ 'NestedKey' => 'nested_value' }] }
96
+ expected = { camel_case_key: [{ nested_key: 'nested_value' }] }
97
+ expect(Wordnik.to_snake_case(hash)).to eq(expected)
98
+ end
99
+ end
100
+
101
+ describe '.to_camel_case' do
102
+ it 'converts hash keys to camelCase' do
103
+ hash = { 'snake_case_key' => 'value', 'another_key' => { 'nested_key' => 'nested_value' } }
104
+ expected = { snakeCaseKey: 'value', anotherKey: { nestedKey: 'nested_value' } }
105
+ expect(Wordnik.to_camel_case(hash)).to eq(expected)
106
+ end
107
+
108
+ it 'returns arrays unchanged' do
109
+ array = %w[snake_case_key another_key]
110
+ expected_array = %w[snake_case_key another_key]
111
+ expect(Wordnik.to_camel_case(array)).to eq(expected_array)
112
+ end
113
+
114
+ it 'handles nested arrays and hashes' do
115
+ hash = { 'snake_case_key' => [{ 'nested_key' => 'nested_value' }] }
116
+ expected = { snakeCaseKey: [{ nestedKey: 'nested_value' }] }
117
+ expect(Wordnik.to_camel_case(hash)).to eq(expected)
118
+ end
119
+ end
120
+ end
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.wordnik.com/v4/word.json/ugly/relatedWords?api_key=API_KEY&limitPerRelationshipType=10&relationshipTypes=antonym
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v2.11.0
12
+ response:
13
+ status:
14
+ code: 404
15
+ message: Not Found
16
+ headers:
17
+ date:
18
+ - Tue, 10 Sep 2024 19:16:49 GMT
19
+ content-type:
20
+ - application/json; charset=utf-8
21
+ transfer-encoding:
22
+ - chunked
23
+ connection:
24
+ - keep-alive
25
+ server:
26
+ - nginx/1.24.0
27
+ x-ratelimit-remaining-hour:
28
+ - '14989'
29
+ x-ratelimit-limit-hour:
30
+ - '15000'
31
+ ratelimit-reset:
32
+ - '11'
33
+ ratelimit-remaining:
34
+ - '489'
35
+ ratelimit-limit:
36
+ - '500'
37
+ x-ratelimit-limit-minute:
38
+ - '500'
39
+ x-ratelimit-remaining-minute:
40
+ - '489'
41
+ cache-control:
42
+ - no-cache
43
+ access-control-allow-origin:
44
+ - "*"
45
+ x-kong-upstream-latency:
46
+ - '9'
47
+ x-kong-proxy-latency:
48
+ - '1'
49
+ via:
50
+ - kong/3.4.1
51
+ content-encoding:
52
+ - gzip
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{"statusCode":404,"error":"Not Found","message":"Not found"}'
56
+ recorded_at: Tue, 10 Sep 2024 19:16:49 GMT
57
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,64 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.wordnik.com/v4/word.json/ruby/audio?api_key=API_KEY&limit=50
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v2.11.0
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ date:
18
+ - Tue, 10 Sep 2024 19:16:49 GMT
19
+ content-type:
20
+ - application/json; charset=utf-8
21
+ transfer-encoding:
22
+ - chunked
23
+ connection:
24
+ - keep-alive
25
+ server:
26
+ - nginx/1.24.0
27
+ x-ratelimit-remaining-hour:
28
+ - '14991'
29
+ x-ratelimit-limit-hour:
30
+ - '15000'
31
+ ratelimit-reset:
32
+ - '11'
33
+ ratelimit-remaining:
34
+ - '491'
35
+ ratelimit-limit:
36
+ - '500'
37
+ x-ratelimit-limit-minute:
38
+ - '500'
39
+ x-ratelimit-remaining-minute:
40
+ - '491'
41
+ cache-control:
42
+ - no-cache
43
+ vary:
44
+ - accept-encoding
45
+ content-encoding:
46
+ - gzip
47
+ access-control-allow-origin:
48
+ - "*"
49
+ x-kong-upstream-latency:
50
+ - '29'
51
+ x-kong-proxy-latency:
52
+ - '0'
53
+ via:
54
+ - kong/3.4.1
55
+ body:
56
+ encoding: UTF-8
57
+ string: '[{"commentCount":0,"createdBy":"ahd","createdAt":"2024-09-10T19:16:49.376+0000","id":51234,"word":"ruby","duration":0.94,"audioType":"pronunciation","attributionText":"from
58
+ The American Heritage® Dictionary of the English Language, 5th Edition","attributionUrl":"https://www.wordnik.com/words/ruby","fileUrl":"https://audio.wordnik.com/54215.mp3?Expires=1725996409&Key-Pair-Id=APKAIHXX6B6C37D2VKVA&Signature=CRQjppIxookEJbxRmEKFiODkm6n94XgXYsq71Cj9Qei3nN1ds6v5~cYbKaHmbNyiEeB895xCzqgaR8jBe-1GlwMwN3gUYP~rsdKMY8z9sb1FWCk45jsdi14cAcmkHlu0kY3EpyPS7W-~v26ZK2zIim1muO3VaUZacjVtD2plSHinoRosfNgoZVjb1P9ScA9vfaq~8WMmls4BkkbaTgc5rEaCtguU55j8vzKM15uiJ5EO1WmC3IDfPMC9ekl7ej4ApGtzEZNK21EOB4T~xpSIF01lfJLp~yin~MlnyTsrZuDvetfGeavJU0LPcPQbSI0ON3HLa9YpOdcbLNLFTxqyVQ__"},{"commentCount":0,"createdBy":"macmillan","createdAt":"2024-09-10T19:16:49.381+0000","id":236224,"word":"ruby","duration":0.91,"audioType":"pronunciation","attributionText":"pronunciation
59
+ of ruby from Macmillan Dictionary -- free online dictionary and thesaurus","description":"See
60
+ more at https://www.macmillandictionary.com/dictionary/american/ruby","attributionUrl":"https://www.macmillandictionary.com/dictionary/american/ruby","fileUrl":"https://audio.wordnik.com/11437225.mp3?Expires=1725996409&Key-Pair-Id=APKAIHXX6B6C37D2VKVA&Signature=moHRNX5Qn9Y7E~7DRqsw57zX3AOZxcbVatyMVfFLAFA7TURlfpwmFPTKWl~F-cfGO2XbdBGpP-Yldr7c8J~PFvzLl3Oq4SARiI1iWzg1JoqF53V5kOdUrrq9GRX-Poxceu9BFMG9RiOQbR-IluGR7gAOJMTTiorX1~Jan8GO-65uVpc2pmnNKomkJ83Qnc9oaE-M8W4AGrsm369AGSMg6R4vMbux5L6oniHjcKhuw0Op-eKc4Kl1ZN2O1awQf4UnRbSnWQoh3i-0KhRE9TdMKRgrXj-fFlDk5YiQ24aLkeTJVDVFDTmxBdDXo0UhFE1AULZjCthRLJMHxRCtS2igcQ__"},{"commentCount":0,"createdBy":"macmillan","createdAt":"2024-09-10T19:16:49.387+0000","id":236223,"word":"ruby","duration":1.01,"audioType":"pronunciation","attributionText":"pronunciation
61
+ of ruby from Macmillan Dictionary -- free online dictionary and thesaurus","description":"See
62
+ more at https://www.macmillandictionary.com/dictionary/american/ruby","attributionUrl":"https://www.macmillandictionary.com/dictionary/american/ruby","fileUrl":"https://audio.wordnik.com/11437224.mp3?Expires=1725996409&Key-Pair-Id=APKAIHXX6B6C37D2VKVA&Signature=e7oSlHFTx7hgFpOWQBHN9uBpUsuyCiu5bweYME89Xza5P0DX1RFTEnkbC7AgxM-BOGeLQeZoos-APGfVT9v6cmQdRcOZLctzlAO31WijepZi-s8lVTNieMoqfH8IHC5CiX0oipL5FI7Z~iy82zISnsYaOewsLq9b-wJBosPw8op0q5S0SWozi8nX8oQLovIBGifmAf2s51EAURSHuB~IQQIfJbe0EXV2DYUYiEWSVL3huxD9cwNVsGJI3ZiOxWLIwwMWkCjCoEFcKIdQezs27fF8DUpsnSWytJ3qNo6qhQ0zaTKQ~ZnSSEtoIBItB4mi5u21yuI1ze4bIRbw5PmGDA__"}]'
63
+ recorded_at: Tue, 10 Sep 2024 19:16:49 GMT
64
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,164 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.wordnik.com/v4/word.json/ruby/definitions?api_key=API_KEY&limit=200
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v2.11.0
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ date:
18
+ - Tue, 10 Sep 2024 19:16:45 GMT
19
+ content-type:
20
+ - application/json; charset=utf-8
21
+ transfer-encoding:
22
+ - chunked
23
+ connection:
24
+ - keep-alive
25
+ server:
26
+ - nginx/1.24.0
27
+ x-ratelimit-remaining-minute:
28
+ - '498'
29
+ x-ratelimit-limit-minute:
30
+ - '500'
31
+ x-ratelimit-limit-hour:
32
+ - '15000'
33
+ ratelimit-reset:
34
+ - '15'
35
+ ratelimit-remaining:
36
+ - '498'
37
+ ratelimit-limit:
38
+ - '500'
39
+ x-ratelimit-remaining-hour:
40
+ - '14998'
41
+ cache-control:
42
+ - no-cache
43
+ vary:
44
+ - accept-encoding
45
+ content-encoding:
46
+ - gzip
47
+ access-control-allow-origin:
48
+ - "*"
49
+ x-kong-upstream-latency:
50
+ - '18'
51
+ x-kong-proxy-latency:
52
+ - '0'
53
+ via:
54
+ - kong/3.4.1
55
+ body:
56
+ encoding: UTF-8
57
+ string: '[{"id":"R5365500-1","partOfSpeech":"noun","attributionText":"from The
58
+ American Heritage® Dictionary of the English Language, 5th Edition.","sourceDictionary":"ahd-5","text":"A
59
+ deep red, translucent variety of the mineral corundum, highly valued as a
60
+ precious stone.","sequence":"1","score":0,"word":"ruby","attributionUrl":"https://ahdictionary.com/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"id":"R5365500-2","partOfSpeech":"noun","attributionText":"from
61
+ The American Heritage® Dictionary of the English Language, 5th Edition.","sourceDictionary":"ahd-5","text":"Something,
62
+ such as a watch bearing, that is made from a ruby.","sequence":"2","score":0,"word":"ruby","attributionUrl":"https://ahdictionary.com/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"id":"R5365500-3","partOfSpeech":"noun","attributionText":"from
63
+ The American Heritage® Dictionary of the English Language, 5th Edition.","sourceDictionary":"ahd-5","text":"A
64
+ dark or deep red to deep purplish red.","sequence":"3","score":0,"word":"ruby","attributionUrl":"https://ahdictionary.com/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"id":"R5365500-4","partOfSpeech":"adjective","attributionText":"from
65
+ The American Heritage® Dictionary of the English Language, 5th Edition.","sourceDictionary":"ahd-5","text":"Of
66
+ the color ruby.","sequence":"4","score":0,"word":"ruby","attributionUrl":"https://ahdictionary.com/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
67
+ The Century Dictionary.","sourceDictionary":"century","text":"In 1887, M.
68
+ Frémy, with the aid of his <em>preparateur</em>, M. Verneuil, undertook new
69
+ experiments on the crystallization of alumina, and had the satisfaction of
70
+ obtaining very beautiful <em>artificial rubies.</em> Now M. Verneuil, today
71
+ professor at the Museum, has discovered the method of producing the ruby artificially
72
+ by melting a mixture of alumina and oxide of chrome at a constant temperature
73
+ of several thousands of degrees, and in layers superposed from the outside
74
+ to the inside, in order to prevent the production of cracks in the crystalline
75
+ mass. This eminent chemist has succeeded in creating a magnificent ruby, weighing
76
+ about 2,500 grams, and having a commercial value of about 3,000 francs. …","word":"ruby","attributionUrl":"https://www.wordnik.com/colophon#century/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
77
+ The Century Dictionary.","sourceDictionary":"century","text":"The deepest
78
+ red topaz which owes its color to heating, to the right degree, of the yellow
79
+ Brazilian topaz. Further heating turns it pink, and still continued heating
80
+ renders it colorless. See <internalXref urlencoded=\"topaz\">topaz</internalXref>.","word":"ruby","attributionUrl":"https://www.wordnik.com/colophon#century/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
81
+ The Century Dictionary.","sourceDictionary":"century","text":"The clear rich-red
82
+ variety of corundum. (See <internalXref urlencoded=\"corundum\">corundum</internalXref>.)","word":"ruby","attributionUrl":"https://www.wordnik.com/colophon#century/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
83
+ The Century Dictionary.","sourceDictionary":"century","text":"A pure or somewhat
84
+ crimson red color.","word":"ruby","attributionUrl":"https://www.wordnik.com/colophon#century/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
85
+ The Century Dictionary.","sourceDictionary":"century","text":"Something resembling
86
+ a ruby; a blain; a blotch; a carbuncle.","word":"ruby","attributionUrl":"https://www.wordnik.com/colophon#century/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
87
+ The Century Dictionary.","sourceDictionary":"century","text":"In <em>heraldry</em>,
88
+ the tincture red or gules, when blazoning is done by means of precious stones.
89
+ See <internalXref urlencoded=\"blazon\">blazon</internalXref>, n., 2.","word":"ruby","attributionUrl":"https://www.wordnik.com/colophon#century/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
90
+ The Century Dictionary.","sourceDictionary":"century","text":"In <em>printing</em>,
91
+ a type smaller than nonpareil and larger than pearl, about the size of American
92
+ agate, or 5½ points in the new system of sizes.","word":"ruby","attributionUrl":"https://www.wordnik.com/colophon#century/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
93
+ The Century Dictionary.","sourceDictionary":"century","text":"In <em>horology</em>:
94
+ Any variety of ruby used as jewels in watchmaking, as in the finest watches.
95
+ Hence—","word":"ruby","attributionUrl":"https://www.wordnik.com/colophon#century/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
96
+ The Century Dictionary.","sourceDictionary":"century","text":"The jewel of
97
+ the roller of the balance-staff of a watch, irrespective of the material of
98
+ which it is made. Compare <internalXref urlencoded=\"jewel\">jewel</internalXref>,
99
+ n., 4.","word":"ruby","attributionUrl":"https://www.wordnik.com/colophon#century/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
100
+ The Century Dictionary.","sourceDictionary":"century","text":"In <em>ornithology</em>:
101
+ The red bird of paradise, <em>Paradisea rubra</em> or <em>sanguinea.</em>","word":"ruby","attributionUrl":"https://www.wordnik.com/colophon#century/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
102
+ The Century Dictionary.","sourceDictionary":"century","text":"The ruby hummer,
103
+ <em>Clytolæma rubineus</em> of Brazil, and some related humming-birds with
104
+ ruby gorget.","word":"ruby","attributionUrl":"https://www.wordnik.com/colophon#century/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"attributionText":"from
105
+ The Century Dictionary.","sourceDictionary":"century","text":"Of a color resembling
106
+ that of the ruby; of a rich red color inclining toward crimson.","word":"ruby","attributionUrl":"https://www.wordnik.com/colophon#century/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"attributionText":"from
107
+ The Century Dictionary.","sourceDictionary":"century","text":"To make red.","word":"ruby","attributionUrl":"https://www.wordnik.com/colophon#century/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"transitive
108
+ verb","attributionText":"from the GNU version of the Collaborative International
109
+ Dictionary of English.","sourceDictionary":"gcide","text":"To make red; to
110
+ redden.","labels":[{"text":"rare","type":"mark"}],"citations":[{"source":"Pope."}],"word":"ruby","attributionUrl":"http://gcide.gnu.org.ua/","wordnikUrl":"https://www.wordnik.com/words/ruby","exampleUses":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
111
+ the GNU version of the Collaborative International Dictionary of English.","sourceDictionary":"gcide","text":"A
112
+ precious stone of a carmine red color, sometimes verging to violet, or intermediate
113
+ between carmine and hyacinth red. It is a red crystallized variety of corundum.","sequence":"1.","labels":[{"text":"(Min.)","type":"fld"}],"citations":[{"source":"Chaucer.","cite":"Of
114
+ <ex>rubies</ex>, sapphires, and pearles white."}],"word":"ruby","notes":[],"attributionUrl":"http://gcide.gnu.org.ua/","wordnikUrl":"https://www.wordnik.com/words/ruby","exampleUses":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
115
+ the GNU version of the Collaborative International Dictionary of English.","sourceDictionary":"gcide","text":"The
116
+ color of a ruby; carmine red; a red tint.","sequence":"2.","citations":[{"source":"Shak.","cite":"The
117
+ natural <ex>ruby</ex> of your cheeks."}],"word":"ruby","attributionUrl":"http://gcide.gnu.org.ua/","wordnikUrl":"https://www.wordnik.com/words/ruby","exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
118
+ the GNU version of the Collaborative International Dictionary of English.","sourceDictionary":"gcide","text":"That
119
+ which has the color of the ruby, as red wine. Hence, a red blain or carbuncle.","sequence":"3.","word":"ruby","attributionUrl":"http://gcide.gnu.org.ua/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
120
+ the GNU version of the Collaborative International Dictionary of English.","sourceDictionary":"gcide","text":"See
121
+ <er>Agate</er>, n., 2.","sequence":"4.","labels":[{"text":"(Print.)","type":"fld"},{"text":"engraving","type":"mark"}],"word":"ruby","attributionUrl":"http://gcide.gnu.org.ua/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
122
+ the GNU version of the Collaborative International Dictionary of English.","sourceDictionary":"gcide","text":"Any
123
+ species of South American humming birds of the genus Clytolæma. The males
124
+ have a ruby-colored throat or breast.","sequence":"5.","labels":[{"text":"(Zoöl.)","type":"fld"}],"word":"ruby","attributionUrl":"http://gcide.gnu.org.ua/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
125
+ the GNU version of the Collaborative International Dictionary of English.","sourceDictionary":"gcide","text":"a
126
+ glassy substance of a red color and a variable composition, but always consisting
127
+ chiefly of the disulphide of arsenic; -- called also <altname>ruby sulphur</altname>.","labels":[{"text":"(Chem.)","type":"fld"}],"word":"ruby","attributionUrl":"http://gcide.gnu.org.ua/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
128
+ the GNU version of the Collaborative International Dictionary of English.","sourceDictionary":"gcide","word":"ruby","attributionUrl":"http://gcide.gnu.org.ua/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
129
+ the GNU version of the Collaborative International Dictionary of English.","sourceDictionary":"gcide","text":"zinc
130
+ sulphide; the mineral zinc blende or sphalerite.","labels":[{"text":"(Min.)","type":"fld"}],"word":"ruby","attributionUrl":"http://gcide.gnu.org.ua/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
131
+ the GNU version of the Collaborative International Dictionary of English.","sourceDictionary":"gcide","text":"red
132
+ silver. See under <er>Red</er>.","labels":[{"text":"(Min.)","type":"fld"}],"word":"ruby","attributionUrl":"http://gcide.gnu.org.ua/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"adjective","attributionText":"from
133
+ the GNU version of the Collaborative International Dictionary of English.","sourceDictionary":"gcide","text":"Ruby-colored;
134
+ red.","word":"ruby","exampleUses":[{"text":"<ex>ruby</ex> lips","position":0}],"attributionUrl":"http://gcide.gnu.org.ua/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
135
+ Wiktionary, Creative Commons Attribution/Share-Alike License.","sourceDictionary":"wiktionary","text":"A
136
+ clear, deep, <xref>red</xref> variety of <xref>corundum</xref>, valued as
137
+ a precious stone.","word":"ruby","attributionUrl":"http://creativecommons.org/licenses/by-sa/3.0/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
138
+ Wiktionary, Creative Commons Attribution/Share-Alike License.","sourceDictionary":"wiktionary","text":"A
139
+ deep <xref>red</xref> <xref>colour</xref>.","word":"ruby","attributionUrl":"http://creativecommons.org/licenses/by-sa/3.0/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
140
+ Wiktionary, Creative Commons Attribution/Share-Alike License.","sourceDictionary":"wiktionary","text":"Type
141
+ having a height of 5.5 <xref>points</xref>.","labels":[{"text":"typography","type":"field"},{"text":"UK","type":"region"}],"word":"ruby","attributionUrl":"http://creativecommons.org/licenses/by-sa/3.0/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
142
+ Wiktionary, Creative Commons Attribution/Share-Alike License.","sourceDictionary":"wiktionary","text":"A
143
+ ruby hummer, a South American <xref>hummingbird</xref>, Clytolaema rubricauda.","word":"ruby","attributionUrl":"http://creativecommons.org/licenses/by-sa/3.0/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
144
+ Wiktionary, Creative Commons Attribution/Share-Alike License.","sourceDictionary":"wiktionary","text":"A
145
+ red bird-of-paradise, Paradisaea rubra.","word":"ruby","attributionUrl":"http://creativecommons.org/licenses/by-sa/3.0/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"adjective","attributionText":"from
146
+ Wiktionary, Creative Commons Attribution/Share-Alike License.","sourceDictionary":"wiktionary","text":"Of
147
+ a deep <xref>red</xref> colour (having any of numerous bright colours reminiscent
148
+ of the colour of blood or cherries or tomatoes).","word":"ruby","attributionUrl":"http://creativecommons.org/licenses/by-sa/3.0/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"verb","attributionText":"from
149
+ Wiktionary, Creative Commons Attribution/Share-Alike License.","sourceDictionary":"wiktionary","text":"To
150
+ make <xref>red</xref>; to <xref>redden</xref>.","labels":[{"text":"transitive","type":"grammar"},{"text":"poetic","type":"usage"}],"word":"ruby","attributionUrl":"http://creativecommons.org/licenses/by-sa/3.0/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
151
+ Wiktionary, Creative Commons Attribution/Share-Alike License.","sourceDictionary":"wiktionary","text":"A
152
+ pronunciation guide written above or beside Chinese or Japanese characters.","word":"ruby","attributionUrl":"http://creativecommons.org/licenses/by-sa/3.0/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
153
+ WordNet 3.0 Copyright 2006 by Princeton University. All rights reserved.","sourceDictionary":"wordnet","text":"a
154
+ deep and vivid red color","word":"ruby","attributionUrl":"https://wordnet.princeton.edu/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
155
+ WordNet 3.0 Copyright 2006 by Princeton University. All rights reserved.","sourceDictionary":"wordnet","text":"a
156
+ transparent deep red variety of corundum; used as a gemstone and in lasers","word":"ruby","attributionUrl":"https://wordnet.princeton.edu/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"noun","attributionText":"from
157
+ WordNet 3.0 Copyright 2006 by Princeton University. All rights reserved.","sourceDictionary":"wordnet","text":"a
158
+ transparent piece of ruby that has been cut and polished and is valued as
159
+ a precious gem","word":"ruby","attributionUrl":"https://wordnet.princeton.edu/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]},{"partOfSpeech":"adjective","attributionText":"from
160
+ WordNet 3.0 Copyright 2006 by Princeton University. All rights reserved.","sourceDictionary":"wordnet","text":"of
161
+ a color at the end of the color spectrum (next to orange); resembling the
162
+ color of blood or cherries or tomatoes or rubies","word":"ruby","attributionUrl":"https://wordnet.princeton.edu/","wordnikUrl":"https://www.wordnik.com/words/ruby","citations":[],"exampleUses":[],"labels":[],"notes":[],"relatedWords":[],"textProns":[]}]'
163
+ recorded_at: Tue, 10 Sep 2024 19:16:45 GMT
164
+ recorded_with: VCR 6.3.1