# Path: kwl.py
# def text_to_kwl(text, lexicon={}):
#   lexicon = lexicon if len(lexicon) else data.load_td('english', 'english')
#   return t2k.text_to_kwl(text, lexicon) 
# 
# def kwl_to_text(kwl_text, language):
#   return localize(kwl_text, language)


from kwl import text_to_kwl, kwl_to_text
import sys
# coding: utf-8


if __name__ == '__main__':
   args_len = len(sys.argv)
   if args_len == 3:
     print kwl_to_text(sys.argv[1], sys.argv[2])
   elif args_len == 2:
     print text_to_kwl(sys.argv[1])
   else:
     print """Usage:

# Path: kwl.py
# def text_to_kwl(text, lexicon={}):
#   lexicon = lexicon if len(lexicon) else data.load_td('english', 'english')
#   return t2k.text_to_kwl(text, lexicon) 
# 
# def kwl_to_text(kwl_text, language):
#   return localize(kwl_text, language)


# Path: __main__.py
from kwl import text_to_kwl, kwl_to_text
import sys

# coding: utf-8


if __name__ == '__main__':
   args_len = len(sys.argv)
   if args_len == 3:
     print kwl_to_text(sys.argv[1], sys.argv[2])
   elif args_len == 2:
     print text_to_kwl(sys.argv[1])
   else:
     print """Usage:

     python kwl.py <kwl2text> <language>