Giter Site home page Giter Site logo

rules's Introduction

rules's People

Contributors

atsushieno avatar gen0083 avatar harry0000 avatar komatatsu avatar mochico avatar mstssk avatar mzsm avatar takahashim avatar vvakame avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rules's Issues

techbooster.ymlの「事」を「こと」に修正するルールの改善案

techbooster.yml内に、漢字の「事」をひらくために次のようなルールが定められています。

- expected: こと
  pattern:  /(記|大|仕|返|無|食|見|議|当)?事(?!情|件|前|後|象|例|実|体|態|項|務|業|柄|故)/

正規表現で熟語にはマッチしないようにしようとされていますが、これでは定義されていない熟語(「悪事」や「事変」など)がマッチしてしまいます。
それらの熟語がマッチしないように漢字を追加してもいいのですが、これはホワイトリスト形式そのものの問題であると考えます。
そこで、いっそのことパターンを「前または後を漢字に挟まれていない『事』」という、より広いものに変えるのはどうでしょうか(正規表現でうまく表現できるのかはわかりませんが)。

ルールの循環がある

rules/media/WEB+DB_PRESS.yml

Lines 1060 to 1067 in 711e007

- pattern: /基([いかきくけこ])|基ず([いかきくけこ])|もとず([いかきくけこ])|もとづ([いかきくけこ])/
expected: 基づ$1
- pattern:
- 元々
- 本々
expected: もともと
- pattern: /基([^数準盤板底礎本])/
expected: もと$1

もとづく基づく をゆききしてしまう。
ルールとしてもまずいのではないか。

see also prh/prh#40

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.