Dart library for checking text for grammar and spelling mistakes using the languageTool API.
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.
Author: RoundedInfinity
Source Code: https://github.com/RoundedInfinity/languagetool_api
#flutter #dart #mobile-apps