Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vaetas/datamuse

Datamuse API for Flutter/Dart
https://github.com/vaetas/datamuse

dart datamuse flutter

Last synced: about 16 hours ago
JSON representation

Datamuse API for Flutter/Dart

Awesome Lists containing this project

README

        

# Datamuse API

![Pub Version](https://img.shields.io/pub/v/datamuse)

Library for using [Datamuse API](https://www.datamuse.com/api/) to find words using specific queries.

## Query

You can find words using specific queries.

```dart
Future> query({
String? meansLike,
String? soundsLike,
String? spelledLike,
List relations = const [],
Vocabulary vocabulary = Vocabulary.basic,
List topics = const [],
String? leftContext,
String? rightContext,
int max = 100,
List metadata = const [],
String? queryEcho,
bool internationalPronunciation = false,
});
```

## Suggestions

You can use `suggest` call to get a list of possible suggestions for your query. This is useful
for autocompletion.

```dart
Future> suggest(
String query, {
int max = 10,
Vocabulary vocabulary = Vocabulary.basic,
});
```