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 each lemma with its occurrence count.

pub package License: MIT

This is the Dart/Flutter client for the Text Lemmatizer API.

Installation

Add this to your pubspec.yaml:

dependencies:
  apiverve_lemmatizer: ^1.2.6

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

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