Skip to content

Conversation

3w36zj6
Copy link
Member

@3w36zj6 3w36zj6 commented Sep 5, 2025

このPull Requestでは、textlintのルールとして、辞書ベースの校正を行うtextlint-rule-prhを導入します。これにより各用語の表記ゆれを抑制できます。

辞書に追加する用語は、「常に表現を統一すべき用語」と「状況に応じて適切な表現を選ぶ必要がある用語」に区分できると考えています。これらの区分に応じて、severity level をそれぞれ errorinfo に設定することで、柔軟な運用が可能になると考えます。このPRでは、まずは「常に表現を統一すべき用語」を辞書に追加します。

@3w36zj6 3w36zj6 marked this pull request as ready for review September 5, 2025 09:02
@3w36zj6 3w36zj6 requested a review from Copilot September 5, 2025 09:02
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces textlint-rule-prh, a dictionary-based proofreading rule for textlint, to prevent terminology inconsistencies. The implementation includes a prh.yaml configuration file with rules for consistent "Typst" capitalization and updates to textlint configuration to enable the new rule.

  • Adds textlint-rule-prh package dependency for dictionary-based text correction
  • Creates prh.yaml configuration file with Typst terminology rules
  • Updates textlint configuration to integrate the new proofreading rule

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
prh.yaml Defines dictionary rules for consistent "Typst" capitalization across different contexts
package.json Adds textlint-rule-prh and textlint-filter-rule-allowlist dependencies
.textlintrc.js Configures prh rule integration and adds allowlist filter for code blocks

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@3w36zj6
Copy link
Member Author

3w36zj6 commented Sep 17, 2025

@gomazarashi @kimushun1101 @ultimatile

prhの辞書に追加すべき単語について、意見を頂きたいです。
このPRで追加する単語は「常に表現を統一すべき用語」であり、翻訳後の日本語の文章に対して適用するルールとなります。
辞書に追加する単語のイメージとしては、textlint-rule-preset-JTF-styleに同梱されているものが参考になります。

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.

1 participant