def is_sentence(self):
    if (self.categories['自立'] == 0):
        return False
    match = 0
    if (self.categories['自立'] >= 7):
        match += 1
    if (((100 * self.categories['自立']) / sum(self.categories.values())) <= 64):
        match += 1
    if (((100 * (self.categories['助詞'] + self.categories['助動詞'])) / self.categories['自立']) >= 22):
        match += 1
    if (((100 * self.categories['助詞']) / self.categories['自立']) >= 26):
        match += 1
    if (((100 * self.categories['助動詞']) / self.categories['自立']) >= 6):
        match += 1
    return (match >= 3)
def is_sentence(self):
    if (self.categories['自立'] == 0):
        return False
    match = 0
    if (self.categories['自立'] >= 7):
        match += 1
    if (((100 * self.categories['自立']) / sum(self.categories.values())) <= 64):
        match += 1
    if (((100 * (self.categories['助詞'] + self.categories['助動詞'])) / self.categories['自立']) >= 22):
        match += 1
    if (((100 * self.categories['助詞']) / self.categories['自立']) >= 26):
        match += 1
    if (((100 * self.categories['助動詞']) / self.categories['自立']) >= 6):
        match += 1
    return (match >= 3)