correctors.ar#
Module Contents#
Classes#
Base class for all language-specific correctors |
- class correctors.ar.ArabicCorrector#
Bases:
correctors.base.CorrectorBase,correctors.universal.UniversalCorrector,correctors.universal.RTLCorrectorBase class for all language-specific correctors
Correctors should inherit from this class first. Correctors for groups of languages should not inherit from the class.
correct(), title_correct() and filename_correct() are the three entry functions. They don’t touch the given translation unit but return all changes and suggestions in the CorrectionResult structure
- correct_punctuation(self, text: str) str#
Replace normal comma, semicolon, question mark with Arabic version of it