Skip to content

Conversation

azu
Copy link
Member

@azu azu commented Jul 5, 2025

#16 follow up

azu added 8 commits July 5, 2025 16:50
…analysis

- Implement new rule to detect English syntax patterns translated to Japanese
- Use kuromojin for accurate part-of-speech analysis to distinguish nouns from predicates
- Allow natural Japanese expressions like '使い方:' (noun + colon)
- Detect unnatural patterns like '実行します:' (predicate + colon)
- Support AST-based detection for Paragraph + block element combinations
- Remove duplicate colon detection from ai-tech-writing-guideline rule
- Add comprehensive test coverage for various patterns

Fixes #16
- Add support for both half-width (:) and full-width (:) colons
- Include conjunction detection (例えば: should be flagged)
- Port original test cases from ai-tech-writing-guideline
- Ensure proper colon character display in error messages
- All tests now passing with comprehensive pattern coverage
- Remove redundant colon index calculation
- Determine colon type once and reuse
- Remove unused colonIndex variable
- Keep clean and efficient implementation
@azu azu added the Type: Refactoring A code change that neither fixes a bug nor adds a feature label Jul 5, 2025
@azu azu merged commit c141fe2 into main Jul 5, 2025
4 checks passed
@azu azu deleted the improve-error branch July 5, 2025 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Refactoring A code change that neither fixes a bug nor adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant