Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/vaetas/datamuse
- Owner: vaetas
- License: mit
- Created: 2020-08-06T21:32:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-23T12:15:24.000Z (over 2 years ago)
- Last Synced: 2024-12-18T09:45:20.604Z (16 days ago)
- Topics: dart, datamuse, flutter
- Language: Dart
- Homepage: https://pub.dev/packages/datamuse
- Size: 34.2 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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,
});
```