This page describes the reverse analyzer idea: starting from a full surface form (Arabic or Latin), we try to reason backwards to discover:
The Reverse Analyzer essentially walks the forward flowchart backwards:
build_combined_token().Once we are satisfied with the forward engine, we can implement this reverse logic by reusing the same pattern library and suffix tables used in the Stem Tester.