fix: non_word_boundary uses the Word property like Ruby's \B - #20
Merged
Merged
Conversation
The complement of the Word-property boundary, not raw Python \B (which is built on a mark-less \w). At a damma|alif junction Ruby's \B holds — both are Word characters — so odni-ara's article contraction (non_word_boundary + maybe(damma) + ال -> " al ") fires: نُورُالدِين is Nur al Din, not Nurualdin. Direct corpus sweep: 8,227 examples, 0 failures. The only map not loading is var-ara-Arab-Arab-rababa, which needs the rababa ML model and is excluded from non-Ruby compilers by design.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The complement of the Word-property boundary, not raw Python
\B(which is built on a mark-less\w). At a damma|alif junction Ruby's\Bholds — both are Word characters — so odni-ara's article contraction (non_word_boundary + maybe(damma) + ال → " al ") fires: نُورُالدِين isNur al Din, notNurualdin.Direct corpus sweep through the engine: 8,227 examples, 0 failures. The only map not loading is var-ara-Arab-Arab-rababa, which needs the rababa ML model and is excluded from non-Ruby compilers by design. Suite 52 passed / 1 xpassed.