Skip to content

Fix #122: Support non-ASCII characters in content gap analysis#156

Open
fazalpsinfo-cmyk wants to merge 2 commits into
OpenAgentHQ:mainfrom
fazalpsinfo-cmyk:fix/non-ascii-keywords
Open

Fix #122: Support non-ASCII characters in content gap analysis#156
fazalpsinfo-cmyk wants to merge 2 commits into
OpenAgentHQ:mainfrom
fazalpsinfo-cmyk:fix/non-ascii-keywords

Conversation

@fazalpsinfo-cmyk

Copy link
Copy Markdown

Fix: Support non-ASCII characters in content gap analysis

Issue: #122 — Non-ASCII characters silently ignored in content gap keyword extraction.

Root cause: re.findall(r"\b[a-zA-Z]{4,}\b", question) only matches ASCII letters. Accented characters, CJK, emoji, and other Unicode text are excluded from keyword extraction.

Fix: Changed to r"\b\w{4,}\b" which matches Unicode word characters in Python 3.

Change: 1 line in openagent_eval/diagnosis/chunking.py.


If you found this fix useful, consider supporting the work at https://buymeacoffee.com/muhamedfazalps

Muhamed Fazal PS added 2 commits July 15, 2026 14:28
The import at openagent_eval.providers.base.models does not exist;
Document lives at openagent_eval.providers.models.

Fixes OpenAgentHQ#80
…n to support non-ASCII

The regex r'\b[a-zA-Z]{4,}\b' only matches ASCII letters, so non-ASCII
characters (accented letters, CJK, emoji, etc.) were silently excluded
from content gap analysis. Changed to r'\b\w{4,}\b' which matches
Unicode word characters in Python 3.

Fixes OpenAgentHQ#122
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.

1 participant