工具 API

post_check

主要功能——使用LanguageTool检查文本中可能的风格和语法问题。

dev1 积分

调用信息

工具标识
languagetool.post_check
服务提供方
LanguageTool
平均响应
715 ms
近 7 天调用
1

输入参数

text

The text to be checked. This or 'data' is required.

data

The text to be checked, given as a JSON document that specifies what's text and what's markup. This or 'text' is required. Markup will be ignored when looking for errors. Example text: <pre>A &lt;b>te

language必填

A language code like `en-US`, `de-DE`, `fr`, or `auto` to guess the language automatically (see `preferredVariants` below). For languages with variants (English, German, Portuguese) spell checking wil

username

Set to get Premium API access: Your username/email as used to log in at languagetool.org.

dicts

Comma-separated list of dictionaries to include words from; uses special default dictionary if this is unset

motherTongue

A language code of the user's native language, enabling false friends checks for some language pairs.

preferredVariants

Comma-separated list of preferred language variants. The language detector used with `language=auto` can detect e.g. English, but it cannot decide whether British English or American English is used.

enabledRules

IDs of rules to be enabled, comma-separated

disabledRules

IDs of rules to be disabled, comma-separated

enabledCategories

IDs of categories to be enabled, comma-separated

disabledCategories

IDs of categories to be disabled, comma-separated

enabledOnly

If true, only the rules and categories whose IDs are specified with `enabledRules` or `enabledCategories` are enabled.

level

If set to `picky`, additional rules will be activated, i.e. rules that you might only find useful when checking formal text.