<commit_before># -*- coding: utf-8 -*-
# (C) 2017 <NAME>
#
# This file is part of 'open-tamil' package tests
#

# setup the paths
from opentamiltests import *
import tamil.utf8 as utf8
from tamil.tscii import TSCII
import codecs

if PYTHON3:
    class long(int):
        pass

class Letters(unittest.TestCase):
    def test_digit_letters(self):
        from operator import itemgetter
        first = itemgetter(0)
        numbers = list(map(first,tamil.utf8.tamil_digits))<commit_msg>Issue with get_letters method #132<commit_after># -*- coding: utf-8 -*-
# (C) 2017 <NAME>
#
# This file is part of 'open-tamil' package tests
#

# setup the paths
from opentamiltests import *
import tamil.utf8 as utf8
from tamil.tscii import TSCII
import codecs

if PYTHON3:
    class long(int):
        pass

class Letters(unittest.TestCase):
    def test_issue132(self):
        x=u"வரு'க"
        y=tamil.utf8.get_letters(x)
        y_eq = [u'\u0bb5', u'\u0bb0\u0bc1', u"'", u'\u0b95']
        self.assertEqual(y,y_eq)
        for a in [u"ரிஷ’",u"ரஸ“மா" , u"ரஹ“மான்"]:
            b=tamil.utf8.get_letters(a)
            b_eq = []
            #self.assertEqual(b,b_eq)
        

    def test_digit_letters(self):
        from operator import itemgetter
        first = itemgetter(0)
        numbers = list(map(first,tamil.utf8.tamil_digits))
{'fraction_non_alphanumeric': 0.12490594431903687, 'fraction_numerical': 0.02784048156508653, 'mean_word_length': 2.8328530259365996, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1321948', 'n_tokens_mistral': 523, 'n_tokens_neox': 505, 'n_words': 115}