Definition¶
- class freedictionaryapi.types.definition.Definition(data: dict)[source]¶
Bases:
freedictionaryapi.types.base.ParsedObjectImplements the object of API JSON response that consists of definition data:
definition - phrase about word meaning;
synonyms - list of synonyms;
example - example sentence or phrase with word usage by current definition.
- property definition: str¶
- Returns
definition (meaning phrase or sentence)
- Return type
str
- property example: str¶
- Returns
example phrase or sentence of word usage (might be omitted)
- Return type
Optional[str]
- property synonyms: List[str]¶
- Returns
list of synonyms (might be omitted)
- Return type
Optional[list[str]]