openthesaurus 0.0.5 copy "openthesaurus: ^0.0.5" to clipboard
openthesaurus: ^0.0.5 copied to clipboard

outdated

A small dart library for querying synonyms from openthesaurus.de

openthesaurus-dart #

This is a simple dart library for accessing the openthesaurus api.

Usage #

Create an instance with


import 'package:openthesaurus/openthesaurus.dart';

var ot = OpenThesaurus.create();

and retrieve synonyms with

var synonyms = await ot.get('Hand');
for (var syn in synonyms) {
  print(syn.terms?.map((e) => e.term).toList());
}

Options #

Retrieve synonyms with options with

var response = ot.getWith('Hand', similar: true,
  startsWith: true, 
  superSet: true, 
  subSet: true, 
  baseForm: true);

or

var response = ot.getWithSubString('Hand', similar: true,
  startsWith: true,
  superSet: true, 
  subSet: true, 
  baseForm: true,
  from: 0,
  max: 10);

See the API documentation (in german) for description of the parameters.

0
likes
0
points
5
downloads

Publisher

unverified uploader

Weekly Downloads

A small dart library for querying synonyms from openthesaurus.de

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, json_annotation

More

Packages that depend on openthesaurus