API Documentation¶
Datamuse
¶
The Datamuse API is a word-finding query engine for developers.
Use it in your apps to find words that match a given set of constraints and that are likely in a given context. Specify a wide variety of constraints on meaning, spelling, sound, and vocabulary in your queries, in any combination.
metadata
property
¶
A mapping of a word to its metadata.
associations(ml, start='*', end='*')
¶
words related to ml
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ml
|
Word
|
means like |
required |
start
|
Word
|
start with |
'*'
|
end
|
Word
|
end in |
'*'
|
homophones(sl)
¶
words that sound like sl
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sl
|
Word
|
sounds like |
required |
orthographic_neighbours(sp)
¶
words that are spelled similarly to sp
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sp
|
Word
|
spelled like |
required |
pattern(start, end, letters)
¶
words that start with start, end in end, and have letters in between
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start
|
Word
|
start with |
required |
end
|
Word
|
end in |
required |
letters
|
int
|
letters in between |
required |
related(word, rel)
¶
words that are related by rel
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
word
|
Word
|
the word |
required |
rel
|
RelatedWordCode
|
related word |
required |
suggestions(s)
¶
sugesstions from prefix hint string s
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
s
|
Word
|
prefix hint string |
required |
synonyms(ml)
¶
words with a meaning similar to ml
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ml
|
Word
|
means like |
required |
with_metadata(*md)
¶
Include extra lexical knowledge for a Word.
Accessible through the metadata property.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
md
|
MetadataFlag
|
the metadata |
()
|