Hello,
Even if I add the frequency, the word that is returned has the frequency in some case and none in others? For instance the below request
https://wordsapiv1.p.mashape.com/words/?frequencymin=7&partofspeech=noun&letterPattern=[1]{3,14}$&hasDetails=synonyms&random=true
{âwordâ:âeachâ,âresultsâ:[{âdefinitionâ:âto or from every one of two or more (considered individually)â,âpartOfSpeechâ:âadverbâ,âsynonymsâ:[âapieceâ,âfor each oneâ,âfrom each oneâ,âto each oneâ],âexamplesâ:[âthey received $10 eachâ]},{âdefinitionâ:"(used of count nouns) every one considered individually",âpartOfSpeechâ:âadjectiveâ,âsimilarToâ:[âallâ],âexamplesâ:[âeach person is mortalâ,âeach party is welcomeâ]}],âsyllablesâ:{âcountâ:1,âlistâ:[âeachâ]},âpronunciationâ:{âallâ:âit?â},âfrequencyâ:5.47}
has the frequency is 5.47 even though the frequencymin=7 ?
a-zA-Z âŠ
Join in the discussion - add comment below:
Just checked it out and it looks good!
Thanks guys for the quick fixes.
Looks like the system was filtering by frequency wrong, sorry about that. Should be fixed now.
The frequency seems fine now. Thanks.
But I tried several different combinations and could not see how frequency is working.
For instance,I repeatedly ran this
https://wordsapiv1.p.mashape.com/words/?frequencyMax=7&frequencyMin=5&partofspeech=noun&letterPattern=[1]{3,12}$&hasDetails=synonyms&random=true
and got back this
5.42
5.66
1.74
2.02
Then I reversed it
https://wordsapiv1.p.mashape.com/words/?frequencyMax=5&frequencyMin=7&partofspeech=noun&letterPattern=[2]{3,12}$&hasDetails=synonyms&random=true
and got these
1.74
1.74
1.74
2.02
What I want to do is get words that are in the range from 5 to 7?
How would I do that?
I believe this is just the opposite right?
" Since the scale is from about 1 to about 8, where a lower number means a word is seen more frequently than a higher numberâŚ"
The higher the number the more frequent it isâŚ
Thanks
a-zA-Z âŠ
a-zA-Z âŠ
Hi again,
Looks like the frequency attribute was being stripped in some cases. Thank you for reporting the problem! It should be fixed now.
As to frequencyMin returning words with lower frequencys, I think the issue is that it just works the opposite of the way you think it does. Asking for a word with a frequencyMin of 7 means âgive me a words whose frequency is at least a 7â. Since the scale is from about 1 to about 8, where a lower number means a word is seen more frequently than a higher number, a frequency of 2 is valid if you ask for a frequencyMin of 7.
Hereâs some more info:
http://blog.wordsapi.com/2015/01/expanded-frequency-information.html
Hello, Thanks for the reply.
I changed the parameter to be camel cased and made this request
https://wordsapiv1.p.mashape.com/words/?frequencyMin=7&partofspeech=noun&letterPattern=[1]{3,14}$&hasDetails=synonyms&random=true
and got back this response
{âwordâ:âpandowdyâ,âresultsâ:[{âdefinitionâ:âdeep-dish apple dessert covered with a rich crustâ,âpartOfSpeechâ:ânounâ,âsynonymsâ:[âdowdyâ],âtypeOfâ:[âpastryâ]}],âsyllablesâ:{âcountâ:3,âlistâ:[âpanâ,âdowâ,âdyâ]},âpronunciationâ:{âallâ:âpĂŚnâda?diâ}}
1- It doesnât have the frequencey.
2- I called the frequency end point and got back this response
{
âwordâ: âpandowdyâ,
âfrequencyâ: 2.02
}
It says the frequency is 2.02 but I requested frequencyMin=7
How can I fix this?
a-zA-Z âŠ
Hi softsafari,
Looks like our documentation has an error. The parameters should be âfrequencyMinâ and âfrequencyMaxâ, camel cased like the rest of the params we use. Sorry about that, Iâll get the documentation fixed.
Also, playing around with api in the search page below
https://market.mashape.com/wordsapi/wordsapi#search
the frequency has no affect on the results that are returned.