From 58290a09f4f57cbe2654c1d8a9174f276cef298b Mon Sep 17 00:00:00 2001 From: Hayri Bakici Date: Thu, 15 Jun 2023 17:11:49 +0200 Subject: [PATCH] format --- lib/openthesaurus.dart | 7 +++---- lib/src/models/term.dart | 7 +++++-- pubspec.yaml | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/lib/openthesaurus.dart b/lib/openthesaurus.dart index 6f9002c..0caf6f1 100644 --- a/lib/openthesaurus.dart +++ b/lib/openthesaurus.dart @@ -15,7 +15,6 @@ import 'package:openthesaurus/openthesaurus.dart'; part 'src/openthesaurus_api.dart'; - class OpenThesaurus { /// Creates an instance of this class for requesting synonyms. factory OpenThesaurus.create() => OpenThesaurus(OpenThesaurusApi()); @@ -32,7 +31,7 @@ class OpenThesaurus { /// Retrieve a collection of synonyms based on the given [query] and /// with the following options. Retrieve ... - /// + /// /// * [similar] terms /// * terms that [startsWith] the same letters as the [query] /// * [superSet] terms, that are more generic @@ -57,13 +56,13 @@ class OpenThesaurus { /// Retrieve a collection of synonyms based on the given [query] and /// with the following options. Retrieve ... - /// + /// /// * [similar] terms /// * terms that [startsWith] the same letters as the [query] /// * [superSet] terms, that are more generic /// * [subSet] terms, that are more specific /// * the [baseForm] of the [query] - /// * terms that contain the substring of the [query], starting [from] + /// * terms that contain the substring of the [query], starting [from] /// a position until the [max]. Future getWithSubString(String query, {bool similar = false, diff --git a/lib/src/models/term.dart b/lib/src/models/term.dart index 24905a1..0c9b48e 100644 --- a/lib/src/models/term.dart +++ b/lib/src/models/term.dart @@ -16,7 +16,7 @@ class SimilarTerm extends Term { _$SimilarTermFromJson(json); SimilarTerm(); - /// Distance to the queried word + /// Distance to the queried word /// (`0` meaning very close and `>=3` meaning not close.) int? distance; } @@ -32,7 +32,7 @@ class SynonymTerm extends Term { SynonymTerm(); - /// Level of term usage. Can be [Level.colloquial], + /// Level of term usage. Can be [Level.colloquial], /// [Level.exalted], [Level.rough] or a [Level.technical] term. @JsonKey(fromJson: _levelFromJson) Level? level; @@ -42,10 +42,13 @@ class SynonymTerm extends Term { enum Level { /// A colloquial term colloquial(key: 'umgangssprachlich'), + /// A technical term technical(key: 'fachsprachlich'), + /// A rough term rough(key: 'derb'), + /// An exalted term exalted(key: 'gehoben'); diff --git a/pubspec.yaml b/pubspec.yaml index f7a4d54..fefb174 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: openthesaurus description: A small dart library for querying synonyms from openthesaurus.de -version: 0.0.1 +version: 0.0.2 repository: https://github.com/hayribakici/openthesaurus-dart environment: