
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
textlint-rule-ja-no-mixed-period
Advanced tools
文末の句点(。)の統一 OR 抜けをチェックするtextlintルール
OK: これは問題ない文章です。
NG: これは問題ある文章です
パラグラフの末尾に必ず句点記号を付けていることをチェックするルールです。
Install with npm:
npm install textlint-rule-ja-no-mixed-period
Via .textlintrc
(Recommended)
{
"rules": {
"ja-no-mixed-period": true
}
}
Via CLI
textlint --rule ja-no-mixed-period README.md
OK:
これは問題ないです。
末尾に感嘆符はある!
「これはセリフ」
english only
- 箇条書きは無視される
NG:
これは句点がありません
末尾にスペースがある。
絵文字が末尾にある。😆
日本語の文章では、文末に句点「。」をつけることで:
このルールは、文末の句点の統一性をチェックし、読みやすい文章作成を支援します。
エラーメッセージ:
文末が"。"で終わっていません。
理由: 句点は文の境界を明確にし、読み手の理解を助けます
修正: 適切な文末表現で文を完結させ、句点を追加してください
例: 「〜です。」「〜ます。」「〜でした。」など
修正例:
❌ これは問題ありません
✅ これは問題ありません。
❌ 説明を追加しました
✅ 説明を追加しました。
エラーメッセージ:
文末が"。"で終わっていません。
理由: 末尾の不要な空白が句点の代わりになっていません
修正: 空白を削除してください
修正例:
❌ 文末に空白がある。
✅ 文末に空白がある。
エラーメッセージ:
文末が"。"で終わっていません。
理由: 日本語文章では"。"を使用します
修正: "."を"。"に置き換えてください
修正例:
❌ これはピリオドで終わっています.
✅ これはピリオドで終わっています。
--fix
オプションで以下が自動修正されます:
.
→ 。
)forceAppendPeriod: true
設定時)textlint --fix --rule ja-no-mixed-period README.md
periodMark
: string
:
allowPeriodMarks
: string[]
periodMark
に指定したものは自動的に許可リストに加わる[]
allowEmojiAtEnd
: boolean
false
forceAppendPeriod
: boolean
periodMark
を--fix時に追加するかどうかfalse
checkFootnote
: boolean
false
{
"rules": {
"ja-no-mixed-period": {
// 優先する句点文字
"periodMark": "。",
// 句点文字として許可する文字列の配列
"allowPeriodMarks": [],
// 末尾に絵文字を置くことを許可するか
"allowEmojiAtEnd": false,
// 句点で終わって無い場合に`periodMark`を--fix時に追加するかどうか
"forceAppendPeriod": false
}
}
}
会話文/疑問文
末尾に。
がない場合でも、代わりに感嘆符や疑問符、括弧などがある場合は例外として扱います。
これは問題ない文章ですか!?
「会話文は括弧で括れば末尾に。がなくても問題ありません」
箇条書き
箇条書きの中はチェックせず無視します。
- これは問題ないです
- これも問題ないです
箇条書き間の。
の有無の統一については次のルールを参照してください。
日本語ではない
日本語が含まれていないパラグラフは無視します。
See Releases page.
Install devDependencies and Run npm test
:
npm i -d && npm test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
MIT © azu
FAQs
文末の句点(。)の統一 OR 抜けをチェックするtextlintルール
The npm package textlint-rule-ja-no-mixed-period receives a total of 26,767 weekly downloads. As such, textlint-rule-ja-no-mixed-period popularity was classified as popular.
We found that textlint-rule-ja-no-mixed-period demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.