Beispiel #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)
Beispiel #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)
Beispiel #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)            
Beispiel #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
Beispiel #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)
Beispiel #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)            
Beispiel #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)
Beispiel #8
0
 def possessive(self, target):
     if self is this_thread.user:
         return your(target)
     else:
         return possessify(self.name, target)
Beispiel #9
0
 def object_possessive(self, target):
     if self is this_thread.user:
         return your(target)
     return super(Person, self).object_possessive(target)
Beispiel #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)
Beispiel #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)
Beispiel #12
0
 def possessive(self, target):
     if self is this_thread.user:
         return your(target)
     else:
         return possessify(self.name, target)
Beispiel #13
0
 def object_possessive(self, target):
     if self is this_thread.user:
         return your(target)
     return super(Person, self).object_possessive(target)