Quick Start - dcbfoss/vritham GitHub Wiki

2.1 Importing Kavyanarthaki

Once installed, kavyanarthaki can be imported with import command.

import kavyanarthaki

You can also consider naming the import for easy referring.

import kavyanarthaki as kn

2.2 Extract syllables (letters) from Malayalam text

If you want to extract syllables (letters) from Malayalam text, you can use following command:

import kavyanarthaki as kn s = kn.syllables(‘മധുരം മലയാളം’) print(s)

2.3 Identifying Laghu-Guru in Malayalam text

If you want to identify guru and laghu in Malayalam text, you can use following command:

import kavyanarthaki as kn gl = kn.gl(‘മധുരം മലയാളം’) print(gl)