Repository navigation
fix: no-mixed-desumasu does not compare a contributor's profile section - #2990
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
no-mixed-desumasu compared a contributor's profile (a section headed by the person's name with さん, opening on the occupation alone: 「イラストレーター。…評価を得ている。」) with the desu-masu page around it. Profiles are written in the plain form by convention; they are a separate block, not the page's voice.
A section is read as a profile when its heading ends with an honorific from the
person-suffixlexicon (さん, 氏, 様) and its first sentence only names something (nouns and punctuation). Its sentences are set apart, as the asker sections and video captions already are.Refs #2957 (its no-mixed-desumasu entry; the date-without-year entry is left for re-judging, see below)
Items to Confirm / Review
dated_genresoption says on purpose that a web page's date at the top is the day it was posted, so its months and days may be any year's.Approach
src/profile-section.ts(profileSentences), used injudgedSentencesbesideaskerSentences;person-suffixis added to the rule'sextra_word_lists; not_flagged in both languages.test/test_desumasu_profile.ts: both honorifics quiet; no honorific or no occupation line still reported.yarn corpusandyarn plantedunchanged.🤖 Generated with Claude Code
work in lab