### New Feature:
- --strict flag for exact confidence matching
- Default: Medium = Medium + High (or better)
- Strict: Medium = Medium only (exact match)
### Usage:
./seo category_apply -s mistergeek.net -c Medium # Medium or better
./seo category_apply -s mistergeek.net -c Medium --strict # Medium only
### Example Output:
# Default (or better):
Filtered to 328 proposals (confidence >= Medium)
# Strict mode:
Filtered to 156 proposals (confidence = Medium, strict mode)
### Benefits:
- More precise control over which posts to update
- Can process confidence levels separately
- Better for batch processing in stages
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Filter proposals by current_site (only applies to selected site)
- Show article title for each post
- Show current and proposed categories
- Better error logging
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
### Fixes:
- Improved get_or_create_category() with multiple lookup strategies
- Handle French characters in category names (Jeu vidéo, Téléchargement)
- Better handling of 'term_exists' 400 error from WordPress
- Fetch existing category details when creation fails
### Lookup Order:
1. Exact name match (case-insensitive)
2. Slug match
3. Normalized slug (handles French characters)
4. Partial name match
### Benefits:
- No more errors for existing categories
- Handles accented characters properly
- Better caching of existing categories
- More robust category creation
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>