All Projects → textlint-ja → textlint-rule-no-synonyms

textlint-ja / textlint-rule-no-synonyms

Licence: MIT license
同義語を表記ゆれをチェックするtextlintルール

Programming Languages

typescript
32286 projects
shell
77523 projects

Projects that are alternatives of or similar to textlint-rule-no-synonyms

textlint-rule-ja-no-abusage
よくある日本語の誤用をチェックするtextlintルール
Stars: ✭ 21 (+16.67%)
Mutual labels:  japanese, textlint, textlintrule
textlint-rule-eslint
textlint rule integrate with ESLint.
Stars: ✭ 12 (-33.33%)
Mutual labels:  textlint, textlintrule
textlint-ja
textlintの日本語コミュニティ/ルールのアイデア
Stars: ✭ 41 (+127.78%)
Mutual labels:  japanese, textlint
analyze-desumasu-dearu
文の敬体(ですます調)、常体(である調)を解析するJavaScriptライブラリ
Stars: ✭ 15 (-16.67%)
Mutual labels:  japanese, textlint
textlint-rule-prh
textlint rule for prh.
Stars: ✭ 58 (+222.22%)
Mutual labels:  textlintrule
zkanji
Japanese language study suite and dictionary
Stars: ✭ 55 (+205.56%)
Mutual labels:  japanese
japanese-word-handler
Better Japanese word handling on Visual Studio Code.
Stars: ✭ 32 (+77.78%)
Mutual labels:  japanese
kanjigrid
Fork of the Kanji Grid addon for Anki
Stars: ✭ 21 (+16.67%)
Mutual labels:  japanese
kotoba
A Discord bot for helping with learning Japanese.
Stars: ✭ 118 (+555.56%)
Mutual labels:  japanese
FCH-TTS
A fast Text-to-Speech (TTS) model. Work well for English, Mandarin/Chinese, Japanese, Korean, Russian and Tibetan (so far). 快速语音合成模型,适用于英语、普通话/中文、日语、韩语、俄语和藏语(当前已测试)。
Stars: ✭ 154 (+755.56%)
Mutual labels:  japanese
Nihonoari-App
A little and minimalist Japanese Kana training
Stars: ✭ 66 (+266.67%)
Mutual labels:  japanese
textlint-rule-stop-words
Textlint rule to find filler words, buzzwords and clichés
Stars: ✭ 21 (+16.67%)
Mutual labels:  textlint
vimdoc-ja-working
vimdoc-ja working repository
Stars: ✭ 70 (+288.89%)
Mutual labels:  japanese
compact-wine
No description or website provided.
Stars: ✭ 87 (+383.33%)
Mutual labels:  japanese
docker-alpine-pandoc-ja
Pandoc for Japanese based on Alpine Linux
Stars: ✭ 14 (-22.22%)
Mutual labels:  japanese
dic-nico-intersection-pixiv
ニコニコ大百科とピクシブ百科事典の共通部分のIME辞書
Stars: ✭ 49 (+172.22%)
Mutual labels:  japanese
open2ch-dialogue-corpus
おーぷん2ちゃんねるをクロールして作成した対話コーパス
Stars: ✭ 65 (+261.11%)
Mutual labels:  japanese
google-news-scraper
Google News Scraper for languages like Japanese, Chinese... [VPN Support]
Stars: ✭ 88 (+388.89%)
Mutual labels:  japanese
japanese-pretrained-models
Code for producing Japanese pretrained models provided by rinna Co., Ltd.
Stars: ✭ 484 (+2588.89%)
Mutual labels:  japanese
jmdict-kindle
Japanese - English dictionary for Kindle based on the JMdict / EDICT database
Stars: ✭ 151 (+738.89%)
Mutual labels:  japanese

@textlint-ja/textlint-rule-no-synonyms Actions Status

文章中の同義語を表記ゆれをチェックするtextlintルールです。

同義語の辞書としてSudachi 同義語辞書を利用しています。

NG:

1つの文章中に同一語彙の別表記を利用している場合を表記ゆれとしてエラーにします。

サーバとサーバーの表記揺れがある。
この雇入と雇入れの違いを見つける。

Install

Install with npm:

npm install @textlint-ja/textlint-rule-no-synonyms sudachi-synonyms-dictionary

辞書となるsudachi-synonyms-dictionarypeerDependenciesなので、ルールとは別に辞書ファイルをインストールする必要があります。 ルール間で1つの辞書ファイルを共有するためです。

Cannot find module 'sudachi-synonyms-dictionary'

上記のエラーが出ている場合は辞書ファイルであるsudachi-synonyms-dictionaryをインストールしてください

npm install sudachi-synonyms-dictionary

Usage

Via .textlintrc(Recommended)

{
    "rules": {
        "@textlint-ja/no-synonyms": true
    }
}

Via CLI

textlint --rule @textlint-ja/no-synonyms README.md

Options

{
    /**
     * 許可するワードの配列
     * ワードは完全一致で比較し、一致した場合は無視されます
     * 例) ["ウェブアプリ", "ウェブアプリケーション"]
     */
    allows?: string[];
    /**
     * 使用を許可する見出し語の配列
     * 定義された見出し語以外の同義語をエラーにします
     * 例) ["ユーザー"] // => 「ユーザー」だけ許可し「ユーザ」などはエラーにする
     */
    preferWords?: string[];
    /**
     * 同じ語形の語の中でのアルファベットの表記揺れを許可するかどうか
     * trueの場合はカタカナとアルファベットの表記ゆれを許可します
     * 例) 「ブログ」と「blog」
     * Default: true
     */
    allowAlphabet?: boolean;
    /**
     * 同じ語形の語の中での漢数字と数字の表記ゆれを許可するかどうか
     * trueの場合は漢数字と数字の表記ゆれを許可します
     * 例) 「1」と「一」
     * Default: true
     */
    allowNumber?: boolean;
    /**
     * 語彙素の異なる同義語を許可するかどうか
     * trueの場合は語彙素の異なる同義語を許可します
     * 例) 「ルーム」と「部屋」
     * Default: true
     */
    allowLexeme?: boolean;
}

Example:

{
    "rules": {
        "@textlint-ja/no-synonyms": {
            "allows": ["ウェブアプリ", "ウェブアプリケーション"],
            "preferWords": ["ユーザー"],
            "allowAlphabet": false,
            "allowNumber": false,
            "allowLexeme": false
        }
    }
}

References

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

npm test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].