Skip to content

Improve error #18

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

Merged
merged 8 commits into from
Jul 5, 2025
Merged

Improve error #18

merged 8 commits into from
Jul 5, 2025

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