language_tool 1.1.0 copy "language_tool: ^1.1.0" to clipboard
language_tool: ^1.1.0 copied to clipboard

outdated

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

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.
25
likes
40
points
797
downloads

Publisher

verified publisherclevertasks.de

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

http

More

Packages that depend on language_tool