FLUTTER ECOSYSTEM

RoundedInfinity/languagetool_api

Dart 和 Flutter 的 LanguageTool 拼写检查器。

languagetool_api 项目封面
Stars
10
Forks
5
最近推送(UTC)
2024年6月26日
项目状态
未归档
Ruben Gullatz GitHub avatar
GITHUB User

Ruben Gullatz ↗

B.Sc. Student in Medical Informatics

Germany
语言Dart

技术话题

此仓库发布的插件

使用的依赖

依赖清单 3 项

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

LanguageTool API

style: very good analysis License: MIT CodeFactor

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

🚀 Features

Checking for the following:

  • spelling mistakes
  • grammatical mistakes
  • logical mistakes

The free version has 20 requests per minute.

You can currently only use the free version of this API that does not require an API key.

🧪 Usage

Use the LanguageTool Object to check your text with the LanguageTool API.

final tool = LanguageTool();

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

result.forEach(print);
// This prints 3 mistakes.
// 1. This sentence does not start with an uppercase letter.
// 2. Using PM and afternoon together is redundant.
// 3. The date 27 May 2007 is not a Monday, but a Sunday.

To get all available languages, call LanguageTool.languages.

You can find a more advanced example in the example tab.