shahinism / python-negar

Negar trying to be a spell corrector for persian language.
http://shahinism.github.com/python-negar/
GNU General Public License v3.0
38 stars 9 forks source link

Bug Report: Error in Suffix Separating Feature #24

Open MahtaFetrat opened 5 months ago

MahtaFetrat commented 5 months ago

Description

When the suffix separating feature is not turned off, some words that have a plural suffix as a part of them are edited wrong. For example نهایی is edited to ن‌هایی.

Steps to Reproduce

from negar.virastar import PersianEditor
edited_text = PersianEditor('مقصد نهایی').text
print(edited_text)