Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 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)            
Ejemplo n.º 4
0
 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
Ejemplo n.º 5
0
 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)
Ejemplo n.º 6
0
 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)            
Ejemplo n.º 7
0
 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)
Ejemplo n.º 8
0
 def possessive(self, target):
     if self is this_thread.user:
         return your(target)
     else:
         return possessify(self.name, target)
Ejemplo n.º 9
0
 def object_possessive(self, target):
     if self is this_thread.user:
         return your(target)
     return super(Person, self).object_possessive(target)
Ejemplo n.º 10
0
 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)
Ejemplo n.º 11
0
 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)
Ejemplo n.º 12
0
 def possessive(self, target):
     if self is this_thread.user:
         return your(target)
     else:
         return possessify(self.name, target)
Ejemplo n.º 13
0
 def object_possessive(self, target):
     if self is this_thread.user:
         return your(target)
     return super(Person, self).object_possessive(target)