maha.parsers.rules.common¶
Module Contents¶
Functions¶
Returns the fractions of a unit pattern. |
|
|
Returns the fractions of a pattern. |
|
Adds start and end expression to the pattern. |
|
Returns a regex pattern that matches any of the given patterns, separated by spaces. |
Attributes¶
Pattern that matches the pronunciation of third in Arabic |
|
Pattern that matches the pronunciation of quarter in Arabic |
|
Pattern that matches the pronunciation of half in Arabic |
|
Pattern that matches the pronunciation of three quarters in Arabic |
|
Pattern that matches WAW as a connector between two words |
|
Pattern that matches the word separator between numerals in Arabic |
|
Pattern that matches all possible forms of the ALEF in Arabic |
|
Pattern that matches the two-suffix of words in Arabic |
|
Pattern that matches the sum-suffix of words in Arabic |
|
Pattern that matches the start of a rule expression in Arabic |
|
Pattern that matches the end of a rule expression in Arabic |
- get_fractions_of_unit_pattern(unit)[source]¶
Returns the fractions of a unit pattern.
- Parameters
unit (str) – The unit pattern.
- Returns
Pattern for the fractions of the unit.
- Return type
str
- get_fractions_of_pattern(pattern)[source]¶
Returns the fractions of a pattern.
- Parameters
pattern (str) – The pattern.
- Returns
Pattern for the fractions of the input pattern.
- Return type
str