fix docstring spacing and comments
This commit is contained in:
parent
89d4d7d4e3
commit
c03eff2b2a
1 changed files with 16 additions and 17 deletions
|
|
@ -10,21 +10,20 @@ the 3rd person case and back. In some cases, the mapping is not unique; it is as
|
||||||
differentiate between the options in some other way.
|
differentiate between the options in some other way.
|
||||||
|
|
||||||
|
|
||||||
==================== ======= ======== ========== ========== ===========
|
==================== ======= ======== ========== ========== ===========
|
||||||
viewpoint/pronouns Subject Object Possessive Possessive Reflexive
|
viewpoint/pronouns Subject Object Possessive Possessive Reflexive
|
||||||
Pronoun Pronoun Adjective Pronoun Pronoun
|
Pronoun Pronoun Adjective Pronoun Pronoun
|
||||||
==================== ======= ======== ========== ========== ===========
|
==================== ======= ======== ========== ========== ===========
|
||||||
1st person I me my mine myself
|
1st person I me my mine myself
|
||||||
1st person plural we us our ours ourselves
|
1st person plural we us our ours ourselves
|
||||||
2nd person you you your yours yourself
|
2nd person you you your yours yourself
|
||||||
2nd person plural you you your yours yourselves
|
2nd person plural you you your yours yourselves
|
||||||
|
|
||||||
3rd person male he him his his himself
|
|
||||||
3rd person female she her her hers herself
|
|
||||||
3rd person neutral it it its its itself
|
|
||||||
3rd person plural they them their theirs themselves
|
|
||||||
==================== ======= ======== ========== ========== ===========
|
|
||||||
|
|
||||||
|
3rd person male he him his his himself
|
||||||
|
3rd person female she her her hers herself
|
||||||
|
3rd person neutral it it its its itself
|
||||||
|
3rd person plural they them their theirs themselves
|
||||||
|
==================== ======= ======== ========== ========== ===========
|
||||||
"""
|
"""
|
||||||
from evennia.utils.utils import copy_word_case, is_iter
|
from evennia.utils.utils import copy_word_case, is_iter
|
||||||
|
|
||||||
|
|
@ -320,9 +319,9 @@ def pronoun_to_viewpoints(
|
||||||
Values are
|
Values are
|
||||||
|
|
||||||
- `subject pronoun`/`subject`/`sp` (I, you, he, they)
|
- `subject pronoun`/`subject`/`sp` (I, you, he, they)
|
||||||
- `object pronoun`/`object/`/`op` (me, you, him, them)
|
- `object pronoun`/`object/`/`op` (me, you, him, them)
|
||||||
- `possessive adjective`/`adjective`/`pa` (my, your, his, their)
|
- `possessive adjective`/`adjective`/`pa` (my, your, his, their)
|
||||||
- `possessive pronoun`/`pronoun`/`pp` (mine, yours, his, theirs)
|
- `possessive pronoun`/`pronoun`/`pp` (mine, yours, his, theirs)
|
||||||
|
|
||||||
gender (str, optional): Specific gender to use (plural counts a gender for this purpose).
|
gender (str, optional): Specific gender to use (plural counts a gender for this purpose).
|
||||||
A gender specified in `options` takes precedence. Values and aliases are:
|
A gender specified in `options` takes precedence. Values and aliases are:
|
||||||
|
|
@ -398,7 +397,7 @@ def pronoun_to_viewpoints(
|
||||||
else:
|
else:
|
||||||
viewpoint = target_viewpoint
|
viewpoint = target_viewpoint
|
||||||
|
|
||||||
# step down into the mapping, using differentiators if necessary
|
# step down into the mapping
|
||||||
viewpoint_map = PRONOUN_MAPPING[viewpoint]
|
viewpoint_map = PRONOUN_MAPPING[viewpoint]
|
||||||
|
|
||||||
if pronoun_type in viewpoint_map:
|
if pronoun_type in viewpoint_map:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue