Skip to content

Instantly share code, notes, and snippets.

@mohdsanadzakirizvi
Created January 10, 2020 07:51
Show Gist options
  • Save mohdsanadzakirizvi/73441e05b2eb48021f2913a6cb77b7f9 to your computer and use it in GitHub Desktop.
Save mohdsanadzakirizvi/73441e05b2eb48021f2913a6cb77b7f9 to your computer and use it in GitHub Desktop.
from indicnlp.langinfo import *
# Input character
c='आ'
# Language is Hindi or 'hi'
lang='hi'
print('Is vowel?: {}'.format(is_vowel(c,lang)))
print('Is consonant?: {}'.format(is_consonant(c,lang)))
print('Is velar?: {}'.format(is_velar(c,lang)))
print('Is palatal?: {}'.format(is_palatal(c,lang)))
print('Is aspirated?: {}'.format(is_aspirated(c,lang)))
print('Is unvoiced?: {}'.format(is_unvoiced(c,lang)))
print('Is nasal?: {}'.format(is_nasal(c,lang)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment