Datamuse class

Constructors

Datamuse.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query({String? meansLike, String? soundsLike, String? spelledLike, List<LexicalRelation> relations = const [], Vocabulary vocabulary = Vocabulary.basic, List<String> topics = const [], String? leftContext, String? rightContext, int max = 100, List<MetadataFlag> metadata = const [], String? queryEcho, bool internationalPronunciation = false}) Future<List<Result>>
This endpoint returns a list of words (and multiword expressions) from a given vocabulary that match a given set of constraints.
suggest(String query, {int max = 10, Vocabulary vocabulary = Vocabulary.basic}) Future<List<Suggestion>>
This resource is useful as a backend for “autocomplete” widgets on websites and apps when the vocabulary of possible search terms is very large. It provides word suggestions given a partially-entered query using a combination of the operations described in the “/words” resource above. The suggestions perform live spelling correction and intelligently fall back to choices that are phonetically or semantically similar when an exact prefix match can't be found.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited