Comments (4)
@attakei https://github.com/textlint-ja/textlint-rule-no-doubled-joshi/releases/tag/3.5.2 で修正してみました。 #23
npm i textlint-rule-preset-japanese
で中に入ってるtextlint-rule-no-doubled-joshiもアップデートできると思います。
npm ls textlint-rule-no-doubled-joshi
[email protected] /Users/azu/.ghq/gitlab.com/attakei-sandbox/textlint-rst-demo
└─┬ [email protected]
└── [email protected]
で確認できます。
頂いた再現リポジトリは次のようになりました。
❯ npx textlint demo-*.rst
/Users/azu/.ghq/gitlab.com/attakei-sandbox/textlint-rst-demo/demo-1.rst
1:22 error 一文に二回以上利用されている助詞 "は" がみつかりました。 japanese/no-doubled-joshi
✖ 1 problem (1 error, 0 warnings)
from textlint-rule-no-doubled-joshi.
- textlint-plugin-rst
- textlint-rule-preset-japanese
を利用している状況下で、以下の用なreSTファイルに対して、textlint
コマンドを実行しています。
今まで「サイトはNetlify」「スライドはGitLab Pages」といった配信分けをしていたのですが、
「 ``/slides`` にビルドしたスライドを置きたい」という動機のものと、こんな構成を検討しています。
* 最初にtextlintで文法チェック
* ドキュメントを別にビルドしてarticle化
* 複数articleを束ねてFirebaseへデプロイ
結果として以下のエラーが出力されています。
7:0 error 一文に二回以上利用されている助詞 "は" がみつかりました。 japanese/no-doubled-joshi
✖ 1 problem (1 error, 0 warnings)
状況再現等に使ったファイル・環境等は、 https://gitlab.com/attakei-sandbox/textlint-rst-demo/ に保存しています。 https://gitlab.com/attakei-sandbox/textlint-rst-demo/-/jobs よりエラーの様子が確認できます
from textlint-rule-no-doubled-joshi.
詳細ありがとうございます!
from textlint-rule-no-doubled-joshi.
こちらのリポジトリでもpackage-lock.json更新後に再実行で確認できました。
ありがとうございました。
↓エビデンス兼ねて、こちらにGitLab-CIでの実行パイプラインを置かせていただきます
https://gitlab.com/attakei-sandbox/textlint-rst-demo/pipelines/69597801
from textlint-rule-no-doubled-joshi.
Related Issues (20)
- "、" の許容とコンテキストの両立
- 異なる種類の助詞の重複を許したい HOT 10
- ignore paragraph in List HOT 3
- doesn't work for plain text files HOT 3
- "に" と "には" を区別したい HOT 2
- がの連続 HOT 2
- [Question]「登ったり降りたり」を許容する方法 HOT 2
- 品詞の種類も一致条件に利用する HOT 1
- separatorCharsの設定が無視される HOT 4
- 読点がハードコードされている HOT 4
- しようとすると を許容したい HOT 3
- カッコでのコンテキストの分離
- "に"の連続 HOT 7
- 〜でも〜でも HOT 2
- 括弧内は別カウントしたい HOT 1
- 括弧で囲まれた文章が一文として判定される HOT 1
- Codeと `、`が連続すると、`、`が間隔値として無視されてしまう HOT 2
- エラーメッセージの詳細化
- 質問: ~かどうか、について HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textlint-rule-no-doubled-joshi.