LanguageTool API

Dart library for checking text for grammar and spelling mistakes using the languageTool API.

style: effective dart CodeFactor

Features

  • check for spelling mistakes
  • check for grammatical mistakes
  • 20 requests per minute

Usage

Use the LanguageTool Object to check your text with the LanguageTool API. You can currently only use the free version of this API that does not require an API key.

First, import this package.

import 'package:language_tool/language_tool.dart';

Now instantiate LanguageTool and use it in an async function.

var tool = LanguageTool();

var result = tool.check('what happened at 5 PM on Monday, 27 May 2007?')

result.forEach(print);
// This will print 2 mistakes.
// 1. No uppercase letter.
// 2. 27 May 2007 wasn't a monday.

Libraries

language_tool
Dart library for checking text for grammar and spelling mistakes using the language tool API. [...]