Man third person

From LSWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 11:52, 11 June 2007 (edit)
Laine (Talk | contribs)

← Previous diff
Current revision (14:07, 11 June 2007) (edit)
Chaos (Talk | contribs)
(Description)
 
Line 11: Line 11:
The second and third arguments provide some support for determining how The second and third arguments provide some support for determining how
to treat the verb in specific contexts, mainly with respect to the fact to treat the verb in specific contexts, mainly with respect to the fact
-that the third-person form of the verb is the same as the first-person+that the third-person form of the verb is the same as the second-person
form when the subject is plural. The argument 'who' is the subject of form when the subject is plural. The argument 'who' is the subject of
the verb, and 'viewer' is the person viewing the action. This is mainly the verb, and 'viewer' is the person viewing the action. This is mainly
for use by the internals of message(). for use by the internals of message().
-The verb "to be" should be provided in its first-person form, "are".+The verb "to be" should be provided in its second-person form, "are".
Like all the grammatical functions, this routine relies on a set of Like all the grammatical functions, this routine relies on a set of
Line 30: Line 30:
==See Also== ==See Also==
-second_person(sefun), pluralize(sefun), singularize(sefun),+[[man second person|second_person(sefun)]], [[man pluralize|pluralize(sefun)]], [[man singularize|singularize(sefun)]],
-past_tense(sefun), present_tense(sefun), gerundize(sefun),+[[ man past tense|past_tense(sefun)]], [[man present tense|present_tense(sefun)]], [[man gerundize|gerundize(sefun)]],
-adverbize(sefun), past_participle(sefun)+[[man adverbize|adverbize(sefun)]], [[man past participle|past_participle(sefun)]]

Current revision

third_person - returns the third-person form of a verb

Contents

Synopsis

string third_person(string verb); varargs string third_person(string verb, mixed who, object viewer);

Description

Calculates and returns the third-person form of a given second-person verb. For instance, third_person("have") == "has".

The second and third arguments provide some support for determining how to treat the verb in specific contexts, mainly with respect to the fact that the third-person form of the verb is the same as the second-person form when the subject is plural. The argument 'who' is the subject of the verb, and 'viewer' is the person viewing the action. This is mainly for use by the internals of message().

The verb "to be" should be provided in its second-person form, "are".

Like all the grammatical functions, this routine relies on a set of generalized conversion rules supplemented by some direct mapping of irregular cases. If you discover a case that is not correctly supported, please inform an elder developer.

Examples

   third_person("look") == "looks"
   third_person("have") == "has"
   third_person("are") == "is"
   third_person("buzz") == "buzzes"

See Also

second_person(sefun), pluralize(sefun), singularize(sefun), past_tense(sefun), present_tense(sefun), gerundize(sefun), adverbize(sefun), past_participle(sefun)

Personal tools