Skip to content

Conversation

@Leko
Copy link
Contributor

@Leko Leko commented Aug 8, 2021

I added an option to recognize different lexeme as the same terminology. This is not a breaking change.
For example, users can use this option for these terms:

  • ルーム <-> 部屋
  • インターバル <-> 間隔
  • セッティング <-> 設定
  • 新しい <-> 新規
  • サインイン <-> ログイン
  • キャンセル <-> 取り消す <-> 破棄

@Leko Leko changed the title feat: add allowLexeme option Propose: allowLexeme option Aug 8, 2021
{
text: "部屋の英語はroomです",
options: {
allowLexeme: false
Copy link
Member

@azu azu Aug 9, 2021

Choose a reason for hiding this comment

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

trueの場合は語彙素の異なる同義語を許可します

Is this allowLexeme: true?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wanted to test it for the case of allowLexeme=false and allowAlphabet: true. I updated the test to clarify what to be tested.

@Leko Leko requested a review from azu August 9, 2021 11:39
@Leko Leko requested a review from azu August 10, 2021 12:42
Copy link
Member

@azu azu left a comment

Choose a reason for hiding this comment

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

LGTM

@azu azu merged commit 7a2deb7 into textlint-ja:master Aug 10, 2021
@azu
Copy link
Member

azu commented Aug 10, 2021

Thanks
Release https://github.com/textlint-ja/textlint-rule-no-synonyms/releases/tag/v1.3.0

@Leko Leko deleted the feat-allow-lexeme branch August 10, 2021 13:39
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