Comments (4)
実装し直した場合に改めて加える形にした方が良さそうなので、今動いてない separatorChars
オプションはREADMEから削除しました
0c9d5ec
from textlint-rule-no-doubled-joshi.
@pddg https://github.com/textlint-ja/textlint-rule-no-doubled-joshi/releases/tag/3.6.0 で separatorCharacters
オプションを実装しました。
(現在と以前の実装が異なるため、separatorChars
とは別の名前にしています)
from textlint-rule-no-doubled-joshi.
以前のバージョンでは separatorChars
がサポートされていましたが、メジャーアップデート時(sentence-splitter
を書き直した際)にオプションのサポートをとりあえず外していて、READMEを更新し忘れていたみたいです。
今 sentence-splitter
の separatorChars
相当の部分がハードコードされているので、これをオプションで指定できるようにして、configで設定可能にする必要がありそうです。
https://github.com/azu/sentence-splitter/blob/026643dd81b8fefbaccb2d32e624c77d5e303c9b/src/parser/SeparatorParser.ts#L4
また,全角ピリオドを使う文章では全角カンマ(
,
)を読点(、
)の代わりに使用するため,読点のみ扱いが異なる現在の実装では不都合が出る文章も多いかと思いますが,いかがでしょうか?
これは別Issueな気がするので別途Issueを作成してもらえると助かります。
textlint-rule-no-doubled-joshi/src/token-utils.ts
Lines 12 to 14 in e11ca0e
https://azu.github.io/morpheme-match/?text=%E5%8F%B3%E3%81%8CiPhone%EF%BC%8C%E5%B7%A6%E3%81%8CAndroid%E3%81%A7%E3%81%99%EF%BC%8E
今は 、
だけしか見てないので、これをconfigで設定可能にするという感じですかね
from textlint-rule-no-doubled-joshi.
ありがとうございます.全角カンマの件については別のissueを作成しました.
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
- index baseに変更する 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.