sjblair / Datamuse4J

A handler for calling Datamuse RESTful API.
16 stars 11 forks source link

Get phrases for a given word #1

Open saleem-muhammad opened 5 years ago

saleem-muhammad commented 5 years ago

Hi,

I have been jumped from https://www.datamuse.com/api/ which says "The Datamuse API is focused on finding words and phrases". I am looking for an example how to find phrases fror a given word. In https://rhymezone.com/ there is such search facility. Thanks

dougb5 commented 5 years ago

To find multi-word phrases that contain a word, use the "spelled like" constraint with two asterisks on either side of the word; for example: http://api.datamuse.com/words?sp=%2A%2Aroyal%2A%2A

(The pattern syntax is described in more detail here: https://www.onelook.com/?c=faq#patterns)