メッセージチェック機能のルール一覧
メッセージチェック機能で利用できるルールを、プリセットと個別ルールに分けて紹介します。各項目には、検出対象と具体例を掲載しています。
| 分類 | 内容 |
|---|---|
| preset-japaneseベース | 日本語の文法や表記を確認する基本ルール |
| preset-ai-writing | AI生成文に見られる表現を確認するルール |
| preset-icsmedia | 固有名詞・慣用表現・表記などを確認するルール |
| 個別ルール | 括弧、日付と曜日、誤用、表記揺れ、英語などのルール |
preset-japaneseベース
Section titled “preset-japaneseベース”textlint-rule-preset-japaneseのうち、一部を除くルールを採用しています。
max-ten
Section titled “max-ten”一文で使用できる「、」の数をチェックします。
https://github.com/textlint-ja/textlint-rule-max-ten
検出例
私は、明日、家族と、一緒に、旅行に、行きます。no-doubled-conjunctive-particle-ga
Section titled “no-doubled-conjunctive-particle-ga”逆接の接続助詞「が」が、同じ文に複数回使われていないかチェックします。
https://github.com/takahashim/textlint-rule-no-doubled-conjunctive-particle-ga
検出例
今日は早朝から出発したが、定刻には間に合わなかったが、無事会場に到着した。no-doubled-conjunction
Section titled “no-doubled-conjunction”同じ接続詞が連続して使われていないかチェックします。
https://github.com/takahashim/textlint-rule-no-doubled-conjunction
検出例
かな漢字変換により漢字が多用される傾向がある。しかし漢字の多用が読みにくさをもたらす側面は否定できない。しかし、平仮名が多い文は間延びした印象を与える恐れもある。no-double-negative-ja
Section titled “no-double-negative-ja”二重否定をチェックします。
https://github.com/textlint-ja/textlint-rule-no-double-negative-ja
検出例
それが事件の発端だったといえなくもない。no-doubled-joshi
Section titled “no-doubled-joshi”同じ助詞が近い位置で繰り返されていないかチェックします。
https://github.com/textlint-ja/textlint-rule-no-doubled-joshi
検出例
材料不足で代替素材で製品を作った。no-dropping-the-ra
Section titled “no-dropping-the-ra”ら抜き言葉をチェックします。
https://github.com/textlint-ja/textlint-rule-no-dropping-the-ra
検出例
食べれるno-mix-dearu-desumasu
Section titled “no-mix-dearu-desumasu”敬体(です・ます調)と常体(だ・である調)が混在していないかチェックします。
https://github.com/azu/textlint-rule-no-mix-dearu-desumasu
検出例
今日はいい天気である。明日も晴れです。no-nfd
Section titled “no-nfd”ホ゜ケット エンシ゛ンのように、macOSでPDFやFinderからコピー&ペーストしたときに生じることがある濁点をチェックします。
https://github.com/azu/textlint-rule-no-nfd
検出例
ホ゜ケット エンシ゛ンno-kangxi-radicals
Section titled “no-kangxi-radicals”康熙部首をチェックします。
https://github.com/xl1/textlint-rule-no-kangxi-radicals
検出例
⼉preset-ai-writing
Section titled “preset-ai-writing”AIが生成した文章によく見られる記述パターンを検出し、自然な日本語表現を促すtextlintルールプリセットです。
https://github.com/textlint-ja/textlint-rule-preset-ai-writing
preset-icsmedia
Section titled “preset-icsmedia”ICS MEDIAで利用されているtextlintルールです。
https://github.com/ics-creative/textlint-rule-preset-icsmedia
長音ありのリスト
Section titled “長音ありのリスト”ルール名:prh_cho_on
検出例
アクセサ社名やブランド名などの固有名詞ルール
Section titled “社名やブランド名などの固有名詞ルール”ルール名:prh_corporation
検出例
アメリカン・エクスプレス重複しやすい表現のルール
Section titled “重複しやすい表現のルール”ルール名:prh_duplicate
検出例
お体をご自愛ください間違いやすい慣用表現ルール
Section titled “間違いやすい慣用表現ルール”ルール名:prh_idiom
検出例
アボガド漢字の閉じ開きルール
Section titled “漢字の閉じ開きルール”ルール名:prh_open_close
検出例
有る冗長な日本語表現ルール
Section titled “冗長な日本語表現ルール”ルール名:prh_redundancy
検出例
うかがわせていただきますno-unmatched-pair
Section titled “no-unmatched-pair”(と]のように、対応していない括弧の組み合わせをチェックするtextlintルールです。
https://github.com/textlint-rule/textlint-rule-no-unmatched-pair
OKパターン
Section titled “OKパターン”これは(秘密)です。John said "Hello World!".NGパターン
Section titled “NGパターン”これは(秘密)です。John said "Hello World!'.date-weekday-mismatch
Section titled “date-weekday-mismatch”日付と曜日の不一致をチェックするtextlintルールです。
https://github.com/textlint-rule/textlint-rule-date-weekday-mismatch
OKパターン
Section titled “OKパターン”2016-12-29(Thursday)2016年12月30日(木曜日)NGパターン
Section titled “NGパターン”2016-12-29(Friday)ja-no-abusage
Section titled “ja-no-abusage”よくある言葉の誤用をチェックするtextlintルールです。
https://github.com/textlint-ja/textlint-rule-ja-no-abusage
ルール名:prh
検出例
値を返却するルール名:dictionary
検出例
今朝起きた事件に法律を適応するja-no-inappropriate-words
Section titled “ja-no-inappropriate-words”不適切な表現をチェックするtextlintルールです。
https://github.com/textlint-ja/textlint-rule-ja-no-inappropriate-words
ルール一覧
- https://github.com/MosasoM/inappropriate-words-ja/blob/master/Sexual.txt
- https://github.com/MosasoM/inappropriate-words-ja/blob/master/Sexual_with_mask.txt
- https://github.com/MosasoM/inappropriate-words-ja/blob/master/Sexual_with_bopo.txt
- https://github.com/MosasoM/inappropriate-words-ja/blob/master/Offensive.txt
検出例
いざりja-no-orthographic-variants
Section titled “ja-no-orthographic-variants”表記揺れをチェックするtextlintルールです。
https://github.com/textlint-ja/textlint-rule-ja-no-orthographic-variants
検出例
組み立てしながら組立するALEXを利用して、英語の不適切な表現をチェックするtextlintルールです。
https://github.com/textlint-rule/textlint-rule-alex
検出例
boogeymancommon-misspellings
Section titled “common-misspellings”Wikipedia: Lists of common misspellingsをもとに、英語のよくあるスペルミスをチェックするtextlintルールです。
https://github.com/io-monad/textlint-rule-common-misspellings
検出例
abandonnedng-word
Section titled “ng-word”指定した文字列が含まれていないかチェックする、Slim Chatwork専用のルールです。複数の文字列を指定できます(バージョン1.3.0で追加)。