搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。