
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
textlint-rule-preset-japanese
Advanced tools
textlint rule preset for Japanese.
日本語向けのtextlint ruleのpresetです。
技術的な文章を書くためにより厳しいルールを求める方は次のプリセットを参照してください。
npmコマンドを使ってインストールできます。
npm install textlint-rule-preset-japanese
安定版は、半年(1月と7月)に一度更新されます。
次のように@next
をつけることで、次期バージョンをインストールして試せます。
安定版と次期バージョンの差分はVersion PackagesのPRで確認できます。
npm install textlint-rule-preset-japanese@next
このpresetは以下のルールを含んでいます。
Via .textlintrc
{
"rules": {
"preset-japanese": true
}
}
Options
{
"rules": {
// それぞれのルールのデフォルト値
"preset-japanese": {
// https://github.com/textlint-ja/textlint-rule-max-ten
// 一文で使える"、"の数
"max-ten": {
"max": 3
},
// https://github.com/takahashim/textlint-rule-no-doubled-conjunctive-particle-ga
// 逆接の接続助詞「が」が、同一文中に複数回出現していないかどうか
// e.g.) 今日は早朝から出発したが、定刻には間に合わなかったが、無事会場に到着した。
"no-doubled-conjunctive-particle-ga": true,
// https://github.com/takahashim/textlint-rule-no-doubled-conjunction
// 同じ接続詞が連続して出現していないかどうか
"no-doubled-conjunction": true,
// https://github.com/textlint-ja/textlint-rule-no-double-negative-ja
// 二重否定の検出
"no-double-negative-ja": true,
// https://github.com/textlint-ja/textlint-rule-no-doubled-joshi
// 二重助詞の検出
// 連続して同じ助詞が出た場合のみを検出
"no-doubled-joshi": {
"min_interval": 1
},
// https://github.com/azu/textlint-rule-sentence-length
// 一文の最大の長さ
"sentence-length": {
"max": 100
},
// https://github.com/textlint-ja/textlint-rule-no-dropping-the-ra
// ら抜き言葉を使用しない
"no-dropping-the-ra": true,
// https://github.com/azu/textlint-rule-no-mix-dearu-desumasu
// 文の敬体(ですます調)、常体(である調)のチェック
"no-mix-dearu-desumasu": true,
// https://github.com/azu/textlint-rule-no-nfd
// ホ゜ケット エンシ゛ン
// のような、Mac OS XでPDFやFinderからのコピペで発生する濁点のチェック
"no-nfd": true,
// https://github.com/textlint-rule/textlint-rule-no-invalid-control-character
// 制御文字の検出
"no-invalid-control-character": true,
// https://github.com/textlint-rule/textlint-rule-no-zero-width-spaces
// ゼロ幅スペースの検出
"no-zero-width-spaces": true,
// https://github.com/xl1/textlint-rule-no-kangxi-radicals
// 康煕部首の検出
"no-kangxi-radicals": true
}
}
}
次のルールでバージョンが更新されます。
textlint-rule-preset-japaneseは、6ヶ月ごとにmajorアップデートを行います。
更新内容はReleases pageを参照してください。
質問は以下のGitterでお願いします。
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
MIT
FAQs
textlint rule preset for japanese.
The npm package textlint-rule-preset-japanese receives a total of 0 weekly downloads. As such, textlint-rule-preset-japanese popularity was classified as not popular.
We found that textlint-rule-preset-japanese demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.