Method: WLAPI::API#frequencies
- Defined in:
- lib/wlapi/api.rb
#frequencies(word) ⇒ Array
Returns the frequency and frequency class of the input word. Frequency class is computed in relation to the most frequent word in the corpus. The higher the class, the rarer the word:
api.frequencies("Autos") => ["40614", "9"]
91 92 93 94 95 96 97 98 |
# File 'lib/wlapi/api.rb', line 91 def frequencies(word) check_params(word) arg1 = ['Wort', word] answer = query(@cl_Frequencies, arg1) get_answer(answer) end |