Skip to content

Use random word API #4

@tgallacher

Description

@tgallacher

Aim to implement a random word API to get the target word in order to extend playing time, and potentially complexity.

One suitable free service is: http://developer.wordnik.com/

For example, using the GET /words.json/randomWord endpoint to get a random word, with control over min/max word counts, then the repitition of words should be removed. E.g.

curl -H 'content-type: application/json' http://api.wordnik.com:80/v4/words.json/randomWord?hasDictionaryDef=true&minCorpusCount=0&maxCorpusCount=-1&minDictionaryCount=1&maxDictionaryCount=-1&minLength=6&maxLength=10&api_key=a2a73e7b926c924fad7001ca3111acd55af2ffabf50eb4ae5

This will have to then be combined with GET /word.json/{word}/definitions endpoint to get a description which could be used as the hint. NB: It appears that the description isn't always available for some words.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions