Giter Club home page Giter Club logo

Comments (4)

azu avatar azu commented on May 29, 2024 1

実装し直した場合に改めて加える形にした方が良さそうなので、今動いてない separatorChars オプションはREADMEから削除しました
0c9d5ec

from textlint-rule-no-doubled-joshi.

azu avatar azu commented on May 29, 2024 1

@pddg https://github.com/textlint-ja/textlint-rule-no-doubled-joshi/releases/tag/3.6.0separatorCharacters オプションを実装しました。
(現在と以前の実装が異なるため、separatorCharsとは別の名前にしています)

from textlint-rule-no-doubled-joshi.

azu avatar azu commented on May 29, 2024

以前のバージョンでは separatorChars がサポートされていましたが、メジャーアップデート時(sentence-splitterを書き直した際)にオプションのサポートをとりあえず外していて、READMEを更新し忘れていたみたいです。

sentence-splitterseparatorChars 相当の部分がハードコードされているので、これをオプションで指定できるようにして、configで設定可能にする必要がありそうです。
https://github.com/azu/sentence-splitter/blob/026643dd81b8fefbaccb2d32e624c77d5e303c9b/src/parser/SeparatorParser.ts#L4

また,全角ピリオドを使う文章では全角カンマ()を読点()の代わりに使用するため,読点のみ扱いが異なる現在の実装では不都合が出る文章も多いかと思いますが,いかがでしょうか?

これは別Issueな気がするので別途Issueを作成してもらえると助かります。

export const is読点Token = (token: KuromojiToken) => {
return token.surface_form === "、" && token.pos === "名詞";
};

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.

pddg avatar pddg commented on May 29, 2024

ありがとうございます.全角カンマの件については別のissueを作成しました.

from textlint-rule-no-doubled-joshi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.