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