Skip to content

feat: warn on misspelled language suffix in prompt filenames (duplicate)#517

Closed
Serhan-Asad wants to merge 1 commit intopromptdriven:mainfrom
Serhan-Asad:fix/issue-451-duplicate
Closed

feat: warn on misspelled language suffix in prompt filenames (duplicate)#517
Serhan-Asad wants to merge 1 commit intopromptdriven:mainfrom
Serhan-Asad:fix/issue-451-duplicate

Conversation

@Serhan-Asad
Copy link
Contributor

Summary

Duplicate of #491 for testing purposes.

  • Fixes default_language from .pddrc being ignored during language detection
  • Adds fuzzy matching to detect misspelled language suffixes in prompt filenames
  • Uses Levenshtein distance ≤ 2 with minimum token length of 4 to avoid false positives

Fixes #451

Test plan

  • 23 new tests covering fuzzy matching and warning behavior
  • All construct_paths tests pass

Duplicate of PR promptdriven#491 for testing purposes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Serhan-Asad Serhan-Asad marked this pull request as draft February 13, 2026 16:00
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.

Language detection ignores .pddrc default_language setting

1 participant