Types of tamil string
Based on tamil morphologics, tamil has sevel types but except this three(voule, constant, compound)they are appears only in between words.
- Voule
- Constant(consonents)
- Compount(composite)
so these are the common type and how to indndify them as which type. let us see how to find them
from tamilString import Letter
voule = Letter("அ")
constant = Letter("க்")
compound = Letter("க")
print(voule.letterType)
print(constant.letterType)
print(compound.letterType)
this show that each ltter and there type
checking charector type
voule = Letter("அ")
constant = Letter("க்")
compound = Letter("க")
print(voule.is_voule)
print(constant.is_constant)
print(compound.is_compound)
checking charector has any other type
voule = Letter("அ")
constant = Letter("க்")
compound = Letter("க")
print(voule.is_voule)
print(constant.is_constant)
print(compound.is_compound)
getting voule and constant
voule = Letter("அ")
constant = Letter("க்")
compound = Letter("க")
print(voule.is_voule)
print(constant.is_constant)
print(compound.is_compound)
splitting letter
voule = Letter("அ")
constant = Letter("க்")
compound = Letter("க")
print(voule.is_voule)
print(constant.is_constant)
print(compound.is_compound)
checking has type
voule = Letter("அ")
constant = Letter("க்")
compound = Letter("க")
print(voule.is_voule)
print(constant.is_constant)
print(compound.is_compound)