Skip to content

For handling tamil letters and stings func provides lot of functions

from tamilstring.collection import *

1
2
3
4
5
from tamilstring.func import is_english
result1 = is_english("a")
result2 = is_english("இ")
print(result1)
print(result2)
Output:
True
False
is_english also consider all english characters Note: space is also consider as english ccharacter

1
2
3
4
5
from tamilstring.func import is_tamil
result1 = is_tamil("க்")
result2 = is_tamil("s")
print(result1)
print(result2)
Output:
True
False
it chackes given input is tamil or not

1
2
3
4
5
from tamilstring.func import is_sanskrit
result1 = is_sanskrit("ஜ்")
result2 = is_sanskrit("D")
print(result1)
print(result2)
Output:
True
False
chacking given string is sanskrit or not

1
2
3
4
5
from tamilstring.func import is_tamil_num
result1 = is_tamil_num("௫")
result2 = is_tamil_num("3")
print(result1)
print(result2)
Output:
True
False
it's check the input is tamil numerical character

1
2
3
4
5
from tamilstring.func import is_english_num
result1 = is_english_num("1")
result2 = is_english_num("1")
print(result1)
print(result2)
Output:
True
False
it's verifies that given is english numerals better you check same as is_digit in python

1
2
3
4
5
from tamilstring.func import is_tamil_char
result1 = is_tamil_char("௹")
result2 = is_tamil_char("க்ஷ்")
print(result1)
print(result2)
Output:
True
False
some charecteric representations are used in tamil also it verify sanskrit ~

1
2
3
4
5
from tamilstring.func import is_vowel
result1 = is_vowel("அ")
result2 = is_vowel("ஃ")
print(result1)
print(result2)
Output:
True
False
it verifies given is vowel or not both in tamil and sanskrit

1
2
3
4
5
from tamilstring.func import is_constant
result1 = is_constant("ழ்")
result2 = is_constant("அ")
print(result1)
print(result2)
Output:
True
False
it verifies given is constant or not both in tamil and sanskrit

1
2
3
4
5
from tamilstring.func import is_compound
result1 = is_compound("க")
result2 = is_compound("அ")
print(result1)
print(result2)
Output:
True
False
it verifies given is compound or not both in tamil and sanskrit

1
2
3
4
5
from tamilstring.func import is_aytham
result1 = is_aytham("ஃ")
result2 = is_aytham("a")
print(result1)
print(result2)
Output:
True
False

it verifies given is an Autham letter

1
2
3
4
5
6
7
from tamilstring.func import constant
result1 = constant("றூ")
result2 = constant("அ")
result3 = constant("க்ஷூ")
print(result1)
print(result2)
print(result3)
Output:
'ற்'
'அ'
'க்ஷ்'
False
it's return you the constant of given compound

1
2
3
4
5
6
7
from tamilstring.func import vowel
result1 = vowel("றூ")
result2 = vowel("ஷௌ")
result3 = vowel("ங்")
print(result1)
print(result2)
print(result3)
Output:
'ஊ'
'ஔ'
None
it's return you the vowel of given compound

1
2
3
4
5
from tamilstring.func import hard_constant
result1 = hard_constant("")
result2 = hard_constant("")
print(result1)
print(result2)
Output:

it's return you the hard constant of given compound

1
2
3
4
5
from tamilstring.func import soft_constant
result1 = soft_constant("")
result2 = soft_constant("")
print(result1)
print(result2)
Output:

it's return you the soft constant of given compound

1
2
3
4
5
from tamilstring.func import get_constants
result1 = get_constants("")
result2 = get_constants("")
print(result1)
print(result2)
Output:

it's return you the all constants of given string

1
2
3
4
5
from tamilstring.func import get_vowels
result1 = get_vowels("")
result2 = get_vowels("")
print(result1)
print(result2)
Output:

it's return you the all vowels of given string

1
2
3
4
5
from tamilstring.func import get_compounds
result1 = get_compounds("")
result2 = get_compounds("")
print(result1)
print(result2)
Output:

it's return you the all compounds of given string

1
2
3
4
5
from tamilstring.func import get_tamil
result1 = get_tamil("")
result2 = get_tamil("")
print(result1)
print(result2)
Output:

it's return you the tamil letters of given string

1
2
3
4
5
from tamilstring.func import get_english
result1 = get_english("")
result2 = get_english("")
print(result1)
print(result2)
Output:

it's return you the all english of given string Even it consider space as an english

1
2
3
4
5
from tamilstring.func import get_sanskrit
result1 = get_sanskrit("")
result2 = get_sanskrit("")
print(result1)
print(result2)
Output:

it's return you the all sanskrit of given string

1
2
3
4
5
from tamilstring.func import get_tamil_numerals
result1 = get_tamil_numerals("")
result2 = get_tamil_numerals("")
print(result1)
print(result2)
Output:

it's return you the all tamil numerals of given string

1
2
3
4
5
from tamilstring.func import get_tamil_symbols
result1 = get_tamil_symbols("")
result2 = get_tamil_symbols("")
print(result1)
print(result2)
Output:

it's return you the all tamil characters of given string

1
2
3
4
5
from tamilstring.func import capsule_letter
result1 = capsule_letter("")
result2 = capsule_letter("")
print(result1)
print(result2)
Output:

it's return you the letter in the capsule form