விதிகள்

மெய்மயக்கம்

tamilrulepy.meymayakkam.meymayakkam1(word)

meymayakkam1 is the implementation of Tholkappiyar rule of mei mayakkam for the letter “க்”

The Letter “க்” must be followed by any derivatives of “க” i.e க,கா,கி,…

Parameters:

word (str) : word you want to check the grammar correctness

Returns :
result (bool):

True - The rule matches and it it grammatically correct for “க்” False - The rule matches and it is not correct for the letter “க்” None - The rule doesn’t apply since there is no “க்” in the word

tamilrulepy.meymayakkam.meymayakkam10(word)

meymayakkam10 is the implementation of Tholkappiyar rule of mei mayakkam for the letter “ம்”

The Letter “ம்” must be followed by any derivatives of “ப்”,”ம்”,”ய்”,”வ்” (i.e) ப, பா, பி… (or) ம, மா, மி … (or) ய, யா, யி… (or) வ, வா, வி…

Parameters:

word (str) : word you want to check the grammar correctness

Returns :
result (bool):

True - The rule matches and it it grammatically correct for “ம்” False - The rule matches and it is not correct for the letter “ம்” None - The rule doesn’t apply since there is no “ம்” in the word

tamilrulepy.meymayakkam.meymayakkam11(word)

meymayakkam11 is the implementation of Tholkappiyar rule of mei mayakkam for the letter “ய்”

The Letter “ய்” must be followed by any derivatives of “க்”,”ங்”,”ச்”,”ஞ்”,”த்”,”ந்”,”ப்”,”ம்”,”ய்”,”வ்” (i.e) க, கா, கி… (or) ங,ஙா,ஙி,… (or) ச,சா ,சி… (or) ஞ ,ஞா,ஞி… (or) த, த,, தி… (or) ந, நா, நி… (or) ப, பா, பி… (or) ம, மா, மி … (or) ய, யா, யி… (or) வ, வா, வி…

Parameters:

word (str) : word you want to check the grammar correctness

Returns :
result (bool):

True - The rule matches and it it grammatically correct for “ய்” False - The rule matches and it is not correct for the letter “ய்” None - The rule doesn’t apply since there is no “ய்” in the word

tamilrulepy.meymayakkam.meymayakkam12(word)

meymayakkam12 is the implementation of Tholkappiyar rule of mei mayakkam for the letter “ர்”

The Letter “ர்” must be followed by any derivatives of “க்”,”ங்”,”ச்”,”ஞ்”,”த்”,”ந்”,”ப்”,”ம்”,”ய்”,”வ்” (i.e) க, கா, கி… (or) ங,ஙா,ஙி,… (or) ச,சா ,சி… (or) ஞ ,ஞா,ஞி… (or) த, த,, தி… (or) ந, நா, நி… (or) ப, பா, பி… (or) ம, மா, மி … (or) ய, யா, யி… (or) வ, வா, வி…

Parameters:

word (str) : word you want to check the grammar correctness

Returns :
result (bool):

True - The rule matches and it it grammatically correct for “ர்” False - The rule matches and it is not correct for the letter “ர்” None - The rule doesn’t apply since there is no “ர்” in the word

tamilrulepy.meymayakkam.meymayakkam13(word)

meymayakkam13 is the implementation of Tholkappiyar rule of mei mayakkam for the letter “ழ்”

The Letter “ழ்” must be followed by any derivatives of “க்”,”ங்”,”ச்”,”ஞ்”,”த்”,”ந்”,”ப்”,”ம்”,”ய்”,”வ்” (i.e) க, கா, கி… (or) ங,ஙா,ஙி,… (or) ச,சா ,சி… (or) ஞ ,ஞா,ஞி… (or) த, த,, தி… (or) ந, நா, நி… (or) ப, பா, பி… (or) ம, மா, மி … (or) ய, யா, யி… (or) வ, வா, வி…

Parameters:

word (str) : word you want to check the grammar correctness

Returns :
result (bool):

True - The rule matches and it it grammatically correct for “ழ்” False - The rule matches and it is not correct for the letter “ழ்” None - The rule doesn’t apply since there is no “ழ்” in the word

tamilrulepy.meymayakkam.meymayakkam14(word)

meymayakkam14 is the implementation of Tholkappiyar rule of mei mayakkam for the letter “வ்”

The Letter “வ்” must be followed by any derivatives of “வ்” (i.e) வ, வா, வி…

Parameters:

word (str) : word you want to check the grammar correctness

Returns :
result (bool):

True - The rule matches and it it grammatically correct for “வ்” False - The rule matches and it is not correct for the letter “வ்” None - The rule doesn’t apply since there is no “வ்” in the word

tamilrulepy.meymayakkam.meymayakkam15(word)

meymayakkam15 is the implementation of Tholkappiyar rule of mei mayakkam for the letter “ல்”

The Letter “ல்” must be followed by any derivatives of “க்”,”ச்”,”ப்”,”ல்”,”ய்”,”வ்” (i.e) க, கா, கி… (or) ச,சா ,சி… (or) ப, பா, பி… (or) ல, லா, லி… (or) ய, யா, யி… (or) வ, வா, வி…

Parameters:

word (str) : word you want to check the grammar correctness

Returns :
result (bool):

True - The rule matches and it it grammatically correct for “ல்” False - The rule matches and it is not correct for the letter “ல்” None - The rule doesn’t apply since there is no “ல்” in the word

tamilrulepy.meymayakkam.meymayakkam16(word)

meymayakkam16 is the implementation of Tholkappiyar rule of mei mayakkam for the letter “ள்”

The Letter “ள்” must be followed by any derivatives of “க்”,”ச்”,”ப்”,”ள்”,”ய்”,”வ்” (i.e) க, கா, கி… (or) ச,சா ,சி… (or) ப, பா, பி… (or) ள, ளா, ளி… (or) ய, யா, யி… (or) வ, வா, வி…

Parameters:

word (str) : word you want to check the grammar correctness

Returns :
result (bool):

True - The rule matches and it it grammatically correct for “ள்” False - The rule matches and it is not correct for the letter “ள்” None - The rule doesn’t apply since there is no “ள்” in the word

tamilrulepy.meymayakkam.meymayakkam17(word)

meymayakkam17 is the implementation of Tholkappiyar rule of mei mayakkam for the letter “ற்”

The Letter “ற்” must be followed by any derivatives of “க்”,”ச்”,”ப்”,”ற்” (i.e) க, கா, கி… (or) ச,சா ,சி… (or) ப, பா, பி… (or) ற, றா, றி…

Parameters:

word (str) : word you want to check the grammar correctness

Returns :
result (bool):

True - The rule matches and it it grammatically correct for “ற்” False - The rule matches and it is not correct for the letter “ற்” None - The rule doesn’t apply since there is no “ற்” in the word

tamilrulepy.meymayakkam.meymayakkam18(word)

meymayakkam18 is the implementation of Tholkappiyar rule of mei mayakkam for the letter “ன்”

The Letter “ன்” must be followed by any derivatives of “க்”,”ச்”,”ஞ்”,”ப்”,”ம்”,”ய்”,”வ்”,”ற்”,”ன்” (i.e) க, கா, கி… (or) ச,சா ,சி… (or) ஞ ,ஞா,ஞி… (or) ப, பா, பி… (or) ம, மா, மி … (or) ய, யா, யி… (or) வ, வா, வி… (or) ற, றா, றி… (or) ன, னா, னி…

Parameters:

word (str) : word you want to check the grammar correctness

Returns :
result (bool):

True - The rule matches and it it grammatically correct for “ன்” False - The rule matches and it is not correct for the letter “ன்” None - The rule doesn’t apply since there is no “ன்” in the word

tamilrulepy.meymayakkam.meymayakkam2(word)

meymayakkam2 is the implementation of Tholkappiyar rule of mei mayakkam for the letter “ங்”

The Letter “ங்” must be followed by any derivatives of “க”, “ங” i.e க,கா,கி,… (or)ங, ஙா ஙி ,…

Parameters:

word (str) : word you want to check the grammar correctness

Returns :
result (bool):

True - The rule matches and it it grammatically correct for “ங்” False - The rule matches and it is not correct for the letter “ங்” None - The rule doesn’t apply since there is no “ங்” in the word

tamilrulepy.meymayakkam.meymayakkam3(word)

meymayakkam3 is the implementation of Tholkappiyar rule of mei mayakkam for the letter “ச்”

The Letter “ச்” must be followed by any derivatives of “ச” i.e ச, சா, சி, சீ,…

Parameters:

word (str) : word you want to check the grammar correctness

Returns :
result (bool):

True - The rule matches and it it grammatically correct for “ச்” False - The rule matches and it is not correct for the letter “ச்” None - The rule doesn’t apply since there is no “ச்” in the word

tamilrulepy.meymayakkam.meymayakkam4(word)

meymayakkam4 is the implementation of Tholkappiyar rule of mei mayakkam for the letter “ஞ்”

The Letter “ஞ்” must be followed by any derivatives of “ச”,”ஞ”,”ய” (i.e) ச, சா, சி,… (or) ஞ ஞா ஞி,… (or) ய யா யி,…

Parameters:

word (str) : word you want to check the grammar correctness

Returns :
result (bool):

True - The rule matches and it it grammatically correct for “ஞ்” False - The rule matches and it is not correct for the letter “ஞ்” None - The rule doesn’t apply since there is no “ஞ்” in the word

tamilrulepy.meymayakkam.meymayakkam5(word)

meymayakkam5 is the implementation of Tholkappiyar rule of mei mayakkam for the letter “ட்”

The Letter “ட்” must be followed by any derivatives of “க”, “ச”, “ட”, “ப” (i.e) க கா கி,… (or) … (or) ய யா யி,…

Parameters:

word (str) : word you want to check the grammar correctness

Returns :
result (bool):

True - The rule matches and it it grammatically correct for “ட்” False - The rule matches and it is not correct for the letter “ட்” None - The rule doesn’t apply since there is no “ட்” in the word

tamilrulepy.meymayakkam.meymayakkam6(word)

meymayakkam6 is the implementation of Tholkappiyar rule of mei mayakkam for the letter “ண்”

The Letter “ண்” must be followed by any derivatives of “க்”,”ச்”,”ஞ்”,”ட்”,”ண்”,”ப்”,”ம்”,”ய்”,”வ்” (i.e) க, கா, கி… (or) ச,சா ,சி… (or) ஞ ,ஞா,ஞி… (or) ட ,டா, டி… (or) ண ,ணா ,ணி… (or) ப, பா, பி… (or) ம, மா, மி … (or) ய, யா, யி… (or) வ, வா, வி…

Parameters:

word (str) : word you want to check the grammar correctness

Returns :
result (bool):

True - The rule matches and it it grammatically correct for “ண்” False - The rule matches and it is not correct for the letter “ண்” None - The rule doesn’t apply since there is no “ண்” in the word

tamilrulepy.meymayakkam.meymayakkam7(word)

meymayakkam7 is the implementation of Tholkappiyar rule of mei mayakkam for the letter “த்”

The Letter “த்” must be followed by any derivatives of “த்” (i.e) த, த,, தி…

Parameters:

word (str) : word you want to check the grammar correctness

Returns :
result (bool):

True - The rule matches and it it grammatically correct for “த்” False - The rule matches and it is not correct for the letter “த்” None - The rule doesn’t apply since there is no “த்” in the word

tamilrulepy.meymayakkam.meymayakkam8(word)

meymayakkam8 is the implementation of Tholkappiyar rule of mei mayakkam for the letter “ந்”

The Letter “ந்” must be followed by any derivatives of “த்”,”ந்”,”ய்” (i.e) த, த,, தி… (or) ந, நா, நி… (or) ய, யா, யி…

Parameters:

word (str) : word you want to check the grammar correctness

Returns :
result (bool):

True - The rule matches and it it grammatically correct for “ந்” False - The rule matches and it is not correct for the letter “ந்” None - The rule doesn’t apply since there is no “ந்” in the word

tamilrulepy.meymayakkam.meymayakkam9(word)

meymayakkam9 is the implementation of Tholkappiyar rule of mei mayakkam for the letter “ப்”

The Letter “ப்” must be followed by any derivatives of “ப்” (i.e) ப, பா, பி…

Parameters:

word (str) : word you want to check the grammar correctness

Returns :
result (bool):

True - The rule matches and it it grammatically correct for “ப்” False - The rule matches and it is not correct for the letter “ப்” None - The rule doesn’t apply since there is no “ப்” in the word

tamilrulepy.meymayakkam.meymayakkam_checker(word_letters, letter, allowed_list, Mei=['க்', 'ங்', 'ச்', 'ஞ்', 'ட்', 'ண்', 'த்', 'ந்', 'ப்', 'ம்', 'ய்', 'ர்', 'ல்', 'வ்', 'ழ்', 'ள்', 'ற்', 'ன்'])

meymayakkam_checker is generic utility function used to do the regular check. All the meymayakkam rule follows a similar pattern like once a mei words came it needs to be followed with some words

This function helps to do the check that and since it is writen in generic way, all the rules will be using this for checking.

Parameters:

word_letters list(str) : word as a list with individual letters as elements letter (str) : Rule specific mei letter we want to check allowed_list list(str) : list of letters which are allowed to follow the mei letter as per tholkappiyar rule

Returns :
result (bool):

True - If the mei letter is followed by correct allowed letters only False - If the mei letter is not followed by the allowed letters

மொழிமுதல்

tamilrulepy.mozhimarabu.word_starting.uyirezhuthu_check(word)

Checks if the first letter of a given Tamil word is a ‘உயிரெழுத்து(Uyirezhuthu)’ (vowel) character.

‘உயிரெழுத்து’ refers to the vowels in the Tamil script. This function checks whether the first letter of the input word is one of the following Tamil vowels: அ, ஆ, இ, ஈ, உ, ஊ, ஏ, ஐ, ஒ, ஓ, or ஔ.

Parameters: word (str): The input Tamil word to be checked.

Returns: bool: True if the first letter of the word is a Tamil vowel (‘உயிரெழுத்து Uyirezhuthu’). None: If the first letter is not a Tamil vowel.

tamilrulepy.mozhimarabu.word_starting.uyirmei_ka_check(word)

Checks if the first letter of a given Tamil word is a ‘உயிர்மெய் (Uyirmei)’ (consonant-vowel) character from the ‘க் (Ka)’ series in the Tamil script.

This function verifies whether the first letter of the input word is one of the following consonant-vowel combinations starting with ‘க் (Ka)’ in the Tamil script: க, கா, கி, கீ, கு, கூ, கெ, கே, கை, கொ, கோ, or கௌ.

Parameters: word (str): The input Tamil word to be checked.

Returns: bool: True if the first letter of the word is one of the specified ‘க் (Ka)’ series characters. None: If the first letter is not a ‘க் (Ka)’ series consonant-vowel combination.

tamilrulepy.mozhimarabu.word_starting.uyirmei_ma_check(word)

Checks if the first letter of a given Tamil word is a ‘உயிர்மெய் (Uyirmei)’ (consonant-vowel) character from the ‘ம் (Ma)’ series in the Tamil script.

This function verifies whether the first letter of the input word is one of the following consonant-vowel combinations starting with ‘ம் (Ma)’ in the Tamil script: ம, மா, மி, மீ, மு, மூ, மெ, மே, மை, மொ, மோ, மௌ.

Parameters: word (str): The input Tamil word to be checked.

Returns: bool: True if the first letter of the word is one of the specified ‘ம் (Ma)’ series characters. None: If the first letter is not a ‘ம் (Ma)’ series consonant-vowel combination.

tamilrulepy.mozhimarabu.word_starting.uyirmei_na_check(word)

Checks if the first letter of a given Tamil word is a ‘உயிர்மெய் (Uyirmei)’ (consonant-vowel) character from the ‘ந் (Na)’ series in the Tamil script.

This function verifies whether the first letter of the input word is one of the following consonant-vowel combinations starting with ‘ந் (Na)’ in the Tamil script: ந, நா, நி, நீ, நு, நூ, நெ, நே, நை, நொ, நோ, நௌ.

Parameters: word (str): The input Tamil word to be checked.

Returns: bool: True if the first letter of the word is one of the specified ‘ந் (Na)’ series characters. None: If the first letter is not a ‘ந் (Na)’ series consonant-vowel combination.

tamilrulepy.mozhimarabu.word_starting.uyirmei_nga_check(word)

Checks if the first letter of a given Tamil word is a ‘உயிர்மெய் (Uyirmei)’ (consonant-vowel) character from the ‘ஞ் (Nga)’ series in the Tamil script.

This function verifies whether the first letter of the input word is one of the following consonant-vowel combinations starting with ‘ஞ் (Nga)’ in the Tamil script: ஞா, ஞெ, ஞொ.

Parameters: word (str): The input Tamil word to be checked.

Returns: bool: True if the first letter of the word is one of the specified ‘ஞ் (Nga)’ series characters. None: If the first letter is not a ‘ஞ் (Nga)’ series consonant-vowel combination.

tamilrulepy.mozhimarabu.word_starting.uyirmei_pa_check(word)

Checks if the first letter of a given Tamil word is a ‘உயிர்மெய் (Uyirmei)’ (consonant-vowel) character from the ‘ப் (Pa)’ series in the Tamil script.

This function verifies whether the first letter of the input word is one of the following consonant-vowel combinations starting with ‘ப் (Pa)’ in the Tamil script: ப, பா, பி, பீ, பு, பூ, பெ, பே, பை, பொ, போ, பௌ.

Parameters: word (str): The input Tamil word to be checked.

Returns: bool: True if the first letter of the word is one of the specified ‘ப் (Pa)’ series characters. None: If the first letter is not a ‘ப் (Pa)’ series consonant-vowel combination.

tamilrulepy.mozhimarabu.word_starting.uyirmei_sa_check(word)

Checks if the first letter of a given Tamil word is a ‘உயிர்மெய் (Uyirmei)’ (consonant-vowel) character from the ‘ச் (Sa)’ series in the Tamil script.

This function verifies whether the first letter of the input word is one of the following consonant-vowel combinations starting with ‘ச் (Sa)’ in the Tamil script: ச, சா, சி, சீ, சு, சூ, செ, சே, சொ, சோ.

Parameters: word (str): The input Tamil word to be checked.

Returns: bool: True if the first letter of the word is one of the specified ‘ச் (Sa)’ series characters. None: If the first letter is not a ‘ச் (Sa)’ series consonant-vowel combination.

tamilrulepy.mozhimarabu.word_starting.uyirmei_ta_check(word)

Checks if the first letter of a given Tamil word is a ‘உயிர்மெய் (Uyirmei)’ (consonant-vowel) character from the ‘த் (Tha)’ series in the Tamil script.

This function verifies whether the first letter of the input word is one of the following consonant-vowel combinations starting with ‘த் (Tha)’ in the Tamil script: த, தா, தி, தீ, து, தூ, தெ, தே, தை, தொ, தோ, தௌ.

Parameters: word (str): The input Tamil word to be checked.

Returns: bool: True if the first letter of the word is one of the specified ‘த் (Tha)’ series characters. None: If the first letter is not a ‘த் (Tha)’ series consonant-vowel combination.

tamilrulepy.mozhimarabu.word_starting.uyirmei_va_check(word)

Checks if the first letter of a given Tamil word is a ‘உயிர்மெய் (Uyirmei)’ (consonant-vowel) character from the ‘வ் (Va)’ series in the Tamil script.

This function verifies whether the first letter of the input word is one of the following consonant-vowel combinations starting with ‘வ் (Va)’ in the Tamil script: வ, வா, வி, வீ, வெ, வே, வை, வௌ.

Parameters: word (str): The input Tamil word to be checked.

Returns: bool: True if the first letter of the word is one of the specified ‘வ் (Va)’ series characters. None: If the first letter is not a ‘வ் (Va)’ series consonant-vowel combination.

tamilrulepy.mozhimarabu.word_starting.uyirmei_ya_check(word)

Checks if the first letter of a given Tamil word is a ‘உயிர்மெய் (Uyirmei)’ (consonant-vowel) character from the ‘ய் (Ya)’ series in the Tamil script.

This function verifies whether the first letter of the input word is the consonant-vowel combination starting with ‘ய் (Ya)’ in the Tamil script: யா.

Parameters: word (str): The input Tamil word to be checked.

Returns: bool: True if the first letter of the word is the specified ‘ய் (Ya)’ series character. None: If the first letter is not the ‘ய் (Ya)’ series consonant-vowel combination.

மொழிஇறுதி

tamilrulepy.mozhimarabu.word_ending.alapedai_check(word)

Checks if the last letter of a given Tamil word is an ‘அளபெடை (Alapedai)’ (short vowel) character.

This function verifies whether the last letter of the input word is one of the following short vowels: அ, இ, உ, எ, or ஒ.

Parameters: word (str): The input Tamil word to be checked.

Returns: bool: True if the last letter of the word is an ‘அளபெடை (Alapedai)’ character. False: If the last letter is not an ‘அளபெடை (Alapedai)’ character.

tamilrulepy.mozhimarabu.word_ending.idaiyinam_check(word)

Checks if the last letter of a given Tamil word is an ‘இடையினம் (Idaiyinam)’ (semi-vowel) character.

This function verifies whether the last letter of the input word is one of the following semi-vowels: ய் ,ர் ,ல், வ், ழ் or ள். It checks the root form of the last letter to determine if it belongs to the ‘இடையினம் (Idaiyinam)’ character set.

Parameters: word (str): The input Tamil word to be checked.

Returns: bool: True if the last letter of the word is an ‘இடையினம் (Idaiyinam)’ character. False: If the last letter is not an ‘இடையினம் (Idaiyinam)’ character.

tamilrulepy.mozhimarabu.word_ending.mellinam_check(word)

Checks if the last letter of a given Tamil word is a ‘மெல்லினம் (Mellinam)’ (nasal consonant) character.

This function verifies whether the last letter of the input word is one of the following nasal consonants: ஞ், ண், ந், ம், or ன். It checks the root form of the last letter to determine if it belongs to the ‘மெல்லினம் (Mellinam)’ character set.

Parameters: word (str): The input Tamil word to be checked.

Returns: bool: True if the last letter of the word is a ‘மெல்லினம் (Mellinam)’ character. False: If the last letter is not a ‘மெல்லினம் (Mellinam)’ character.

tamilrulepy.mozhimarabu.word_ending.oorezhuthoorumozhi_check(word)

Checks if the last letter of a given Tamil word is an ‘ஓரெழுத்து ஒருமொழி (oorezhuthuoorumozhi)’ (long vowel) character.

This function verifies whether the last letter of the input word is one of the following long vowels: ஆ, ஈ, ஊ, ஏ, ஐ, or ஓ. It checks the root form of the last letter to determine if it belongs to the ‘ஓரெழுத்து ஒருமொழி (oorezhuthuoorumozhi)’ character set.

Parameters: word (str): The input Tamil word to be checked.

Returns: bool: True if the last letter of the word is an ‘ஓரெழுத்து ஒருமொழி (oorezhuthuoorumozhi)’ character. False: If the last letter is not an ‘ஓரெழுத்து ஒருமொழி (oorezhuthuoorumozhi)’ character.

tamilrulepy.mozhimarabu.word_ending.suttu_check(word)

Checks if a given Tamil word follows the ‘சுட்டெழுத்து(Suttu)’ (consonant + vowel) structure.

This function checks if the first letter is one of the short vowels (அ, இ, உ) and the second letter is one of the consonants (க்,ச்,த்,ப்,வ்). It is used to validate the ‘சுட்டெழுத்து(Suttu)’ (consonant + vowel) structure of the word.

Parameters: word (str): The input Tamil word to be checked.

Returns: bool: True if the word starts with a short vowel followed by a consonant. False: If the word does not follow the ‘சுட்டெழுத்து(Suttu)’ structure.

tamilrulepy.mozhimarabu.word_ending.uyir_check(word)

Checks if the last letter of a given Tamil word is a ‘உயிரெழுத்து(Uyir)’ (vowel) character.

This function verifies whether the last letter of the input word is one of the following Tamil vowels: அ, ஆ, இ, ஈ, உ, ஊ, ஏ, ஐ, ஒ, ஓ, or ஔ. It checks the root form of the last letter to determine if it belongs to the ‘Uyir’ character set.

Parameters: word (str): The input Tamil word to be checked.

Returns: bool: True if the last letter of the word is a Tamil vowel (‘உயிரெழுத்து’). False: If the last letter is not a Tamil vowel.

tamilrulepy.mozhimarabu.word_ending.vinaa_check(word)

Checks if the first two letters of a given Tamil word form a specific pattern: ‘Vinaa’.

This function checks if the first letter is “எ” and the second letter is one of the consonants: க்,ச்,த்,ப்,வ்,ங்,ந்.

Parameters: word (str): The input Tamil word to be checked.

Returns: bool: True if the word follows the ‘Vinaa’ pattern of ‘எ’ followed by a consonant. False: If the word does not match the ‘Vinaa’ pattern.