probe-rtl.js detects register mixing from word lists in the REGISTERS map. Egyptian and Levantine are reasonably covered; Gulf and Maghrebi are thin, so a product written in either will under-report.
Where: scripts/probe-rtl.js, the REGISTERS object.
What would help: more markers for gulf and maghrebi — particles, common verbs, and function words that are distinctive rather than shared with MSA. A marker that also appears in MSA is worse than no marker, because it produces a false positive, and false positives are what get a whole report ignored.
Please add a short note in the PR describing which variety each marker belongs to and, where a word is regional within a variety, say so. references/arabic-rtl.md has the current table and should be updated alongside.
Native or near-native familiarity with the variety matters more than JavaScript here — the code change is one array.
probe-rtl.jsdetects register mixing from word lists in theREGISTERSmap. Egyptian and Levantine are reasonably covered; Gulf and Maghrebi are thin, so a product written in either will under-report.Where:
scripts/probe-rtl.js, theREGISTERSobject.What would help: more markers for
gulfandmaghrebi— particles, common verbs, and function words that are distinctive rather than shared with MSA. A marker that also appears in MSA is worse than no marker, because it produces a false positive, and false positives are what get a whole report ignored.Please add a short note in the PR describing which variety each marker belongs to and, where a word is regional within a variety, say so.
references/arabic-rtl.mdhas the current table and should be updated alongside.Native or near-native familiarity with the variety matters more than JavaScript here — the code change is one array.