def __question_to_string(self): if self.concept.action.word is to_be: return words2text([to_be.to_string(**self.concept.get_action_form()), str(self.concept.subject.english_implement()), str(self.concept.action.english_implement(without_verb=True)) ]).capitalize() + '?' else: return words2text([to_do.to_string(**self.concept.get_action_form()), str(self.concept.subject.english_implement()), str(self.concept.action.english_implement()) ]).capitalize() + '?'
def __str__(self): words = [] definite = self.concept.definite plurum = self.form.get('plurum', self.concept.plurum) if not self.concept.word.proper_name and \ not self.form.get('no_article', False): words.append(Article().to_string(definite=definite, plurum=plurum)) words += [x.english_implement(no_article=True, plurum=plurum) for x in self.concept.attributes] words.append(self.concept.word.to_string(plurum=plurum)) if len(words) > 1 and words[0] == 'a' and words[1][0] in "eyuioa": words[0] = 'an' return words2text(words)
def __story_to_string(self): return words2text([self.concept.subject.english_implement(), self.concept.action.english_implement(**self.concept.get_action_form()) ]).capitalize() + '.'