removeOrdinalSuffix

Strip Persian ordinal endings (مین, ام, اُم, م, plus irregular forms like سوم → سه, یازدهم → یازده) from a Persian word, leaving the cardinal form. Use when canonicalizing user-typed ordinals before lookup or comparison. Triggers on mentions of removeOrdinalSuffix, strip Persian ordinal, "سوم → سه", "یازدهم → یازده", canonical Persian number word.

persian-tools Updated

File contents

persian-tools/persian-tools commit dd00739ea6

Frequently asked questions

npx get-skill add persian-tools/removeordinalsuffix