搜索插件、代码仓与 APP 分类

插件详情v2.2.0

language_tool

使用 language tool API 检查文本语法和拼写错误的 Dart 库。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
97
喜欢数
25
Pub 分数
160

安装插件

flutter pub add language_tool

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个与 LanguageTool API 集成的 Dart 库,用于检测文本中的语法、拼写和风格问题。它支持多种语言,并提供实时反馈,非常适合需要文本验证或写作辅助的应用程序。该包可在所有主要平台上使用,包括移动设备、网页和桌面端。开发者可以轻松地在应用中实现语言检查功能,设置简单。特别适用于教育工具、内容创作应用和多语言应用程序。

适合场景

  • 实时语法检查
  • 表单中的拼写纠正
  • 教育写作工具
  • 多语言文本验证
  • 内容编辑助手

主要特点

  • 支持多种语言
  • 与 LanguageTool API 集成
  • 跨平台兼容性
  • 简单的 API 集成
  • 返回详细的错误建议

适合对象

  • 编写和编辑应用程序
  • 语言学习平台
  • 内容管理系统
  • 教育软件
  • 包含用户生成文本的应用程序

使用建议

  • 需要互联网连接
  • 可能应用速率限制
  • 生产环境使用需要 API 密钥
  • 有限的离线功能
  • 依赖外部服务的稳定性

原始 README

以下为关联源码仓库的 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.

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目

暂无相关数据。