Text Lemmatizer API - Dart/Flutter Client
Text Lemmatizer reduces inflected words in submitted text down to their dictionary base forms. It confirms when valid lemmas exist, while paid plans return full word-by-word mappings.
This is the Dart/Flutter client for the Text Lemmatizer API.
Installation
Add this to your pubspec.yaml:
dependencies:
apiverve_lemmatizer: ^1.2.5
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage
import 'package:apiverve_lemmatizer/apiverve_lemmatizer.dart';
void main() async {
final client = LemmatizerClient('YOUR_API_KEY');
try {
final response = await client.execute({
'text': 'The cats ran from door to door'
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response
{
"status": "ok",
"error": null,
"data": {
"found": 3,
"lemmas": {
"cat": 1,
"ran": 1,
"door": 2
}
}
}
API Reference
- API Home: Text Lemmatizer API
- Documentation: docs.apiverve.com/ref/lemmatizer
Authentication
All requests require an API key. Get yours at apiverve.com.
License
MIT License - see LICENSE for details.
Built with Dart for APIVerve
Libraries
- apiverve_lemmatizer
- Text Lemmatizer API client for Dart/Flutter