| Home | Trees | Indices | Help |
|---|
|
|
Ghalatawi: Arabic AutoCorrection module
Author: Taha Zerrouki
Contact: taha dot zerrouki at gmail dot com
Copyright: Arabtechies, Arabeyes, Taha Zerrouki
License: GPL
Date: 2011/01/05
Version: 0.2
|
|||
| Boolean |
|
||
| unicode or False. |
|
||
| unicode or False. |
|
||
| Boolean. |
|
||
|
|||
ArabicAutocorrectWordlist =
|
|||
ReplacementTable =
|
|||
__package__ =
|
|||
|
|||
Checks for a valid Arabic word. An Arabic word not contains spaces, digits and pounctuation avoid some spelling error, TEH_MARBUTA must be at the end.
|
Autocorrect by using regular expression from remplacement table. Example: >>> word=u"الإجتماعية" >>> autocorrectByRegex(word) الاجتماعية
|
Autocorrect by using word list. the default list is ArabicAutocorrectWordlist. Example: >>> autocorrectlist={ u'اذا':u'إذا', u'او':u'أو', u'فى':u'في', u'هى':u'هي', u'انت':u'أنت', u'انتما':u'أنتما', u'الى':u'إلى', u'التى':u'التي', u'الذى':u'الذي', } >>> word=u"اذا" >>> autocorrectByWordlist(word, autocorrectlist) إذا
|
Load Autocorrect list from a file, to the global list autocorrect_arabic_list. Example: >>> autocorrectlist=loadAutocorrectWordlistFromFile("data/arabic.acl") >>> word=u"اذا" >>> autocorrectByWordlist(word, autocorrectlist) إذا
|
|
|||
ArabicAutocorrectWordlist
|
ReplacementTable
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Wed Aug 03 13:41:20 2011 | http://epydoc.sourceforge.net |