Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rule): add "disabled" and "allows" for each dict item #15

Merged
merged 4 commits into from
Jan 4, 2019

Conversation

azu
Copy link
Member

@azu azu commented Jan 3, 2019

各辞書に対してオプションを指定できるように

  • disabled - 辞書を無効化
  • allows - 無視したいパターンを指定できる(〜を実行、〜を行う 向け)

resolve #13

@azu azu requested a review from shirayu January 3, 2019 11:37
@@ -251,13 +263,17 @@ module.exports = [
},
{
// https://azu.github.io/morpheme-match/?text=動作の(確認を行わなければ)ならない
id: "dict5",
disabled: false,
allows: ["/^[ァ-ヶ]+を.?行う/", "/^[a-zA-Z]+を.?行う/"],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

デフォルト値をとりあえず カナカナと英語 は無視という大雑把なものを入れたけど、どうするべきかな

README.md Outdated
- 参考: <http://www.atmarkit.co.jp/ait/articles/1001/19/news106_2.html>
- "を行う"は冗長な表現です。"する"など簡潔な表現にすると文章が明瞭になります。
- 【dict5】 "\[名詞]を行う"は冗長な表現です。"\[名詞]する"など簡潔な表現にすると文章が明瞭になります。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[サ変名詞] の方がより適当そうです

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

「サ変名詞」と書くと普通の人はわからないと思うので、補足のリンクが必要そうですね。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

参考リンクを READMEへのリンクをして、各ルールごとに解説を書いていくスタイルにした方がいいかな。(リンク切れ対策も含めて

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@azu
Copy link
Member Author

azu commented Jan 4, 2019

a9529ae

  • メッセージにでるURLをREADMEに変更
  • 辞書の"description"でREADMEに表示する長めの解説を掛けるように(messageはCLIにでるのはできれば1行にしておく)
  • [サ変名詞] の解説を追加(これでいいかな)

@shirayu
Copy link
Contributor

shirayu commented Jan 4, 2019

LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants