| name | type | required | default | desc |
|---|---|---|---|---|
| text | string | true | 待检测文本 | |
| category | int|array | false | 指定检测分类编号;支持单个数字、数组,或逗号分隔字符串 | |
| full_match | int | false | 0 | 是否完整匹配全部命中词;0 仅返回首个命中,1 返回全部命中 |
| list_categories | int | false | 0 | 是否仅返回可用分类列表;1 是,0 否 |
| name | type | desc |
|---|---|---|
| data.hit | bool | 是否命中违禁词 |
| data.matched_count | int | 命中的违禁词数量 |
| data.matched_words | array | 命中的违禁词列表 |
| data.first_match | string | 首个命中的违禁词,未命中时为空字符串 |
| data.categories | array | 当 list_categories=1 时返回分类编号列表 |