def possessive(self, target, **kwargs): """Given a word like "fish," returns "your fish" or "John Smith's fish," depending on whether the person is the user.""" if self is this_thread.user: return your(target, **kwargs) else: return possessify(self.name, target)
def pronoun_possessive(self, target, **kwargs): if self == this_thread.user and ('thirdperson' not in kwargs or not kwargs['thirdperson']): output = your(target) elif self.gender == 'female': output = her(target) else: output = his(target) if 'capitalize' in kwargs and kwargs['capitalize']: return(capitalize(output)) else: return(output)
def pronoun_possessive(self, target, **kwargs): if self == this_thread.user and ("thirdperson" not in kwargs or not kwargs["thirdperson"]): output = your(target) elif self.gender == "female": output = her(target) else: output = his(target) if "capitalize" in kwargs and kwargs["capitalize"]: return capitalize(output) else: return output
def pronoun_possessive(self, target, **kwargs): if self == this_thread.user and ('thirdperson' not in kwargs or not kwargs['thirdperson']): output = your(target) elif self.gender == 'female': output = her(target) else: output = his(target) if 'capitalize' in kwargs and kwargs['capitalize']: return (capitalize(output)) else: return (output)
def pronoun_possessive(self, target, **kwargs): """Given a word like "fish," returns "her fish" or "his fish," as appropriate.""" if self == this_thread.user and ('thirdperson' not in kwargs or not kwargs['thirdperson']): output = your(target, **kwargs) elif self.gender == 'female': output = her(target, **kwargs) else: output = his(target, **kwargs) if 'capitalize' in kwargs and kwargs['capitalize']: return(capitalize(output)) else: return(output)
def pronoun_possessive(self, target, **kwargs): """Given a word like "fish," returns "her fish" or "his fish," as appropriate.""" if self == this_thread.user and ('thirdperson' not in kwargs or not kwargs['thirdperson']): output = your(target, **kwargs) elif self.gender == 'female': output = her(target, **kwargs) else: output = his(target, **kwargs) if 'capitalize' in kwargs and kwargs['capitalize']: return (capitalize(output)) else: return (output)
def possessive(self, target): if self is this_thread.user: return your(target) else: return possessify(self.name, target)
def object_possessive(self, target): if self is this_thread.user: return your(target) return super(Person, self).object_possessive(target)
def object_possessive(self, target, **kwargs): """Given a word, returns a phrase indicating possession, but uses the variable name rather than the object's actual name.""" if self is this_thread.user: return your(target, **kwargs) return super(Person, self).object_possessive(target, **kwargs)