Skip to content

Commit

Permalink
add they're/(s)he's and they've/(s)he's contractions
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Jordan committed Sep 20, 2023
1 parent fc2bb90 commit 48a3efe
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions macros/misc/randomPerson.pl
Original file line number Diff line number Diff line change
Expand Up @@ -796,4 +796,48 @@ sub Were {
return shift->verb('Were', 'Was');
}

=head3 C<theyre> or C<Theyre>
Returns the correct contraction for the pronoun with to be, with captilization. For example
$p->theyre;
or
$p->Theyre;
=cut

sub theyre {
my $self = shift;
return $self->they . "'" . $self->verb('re', 's');
}

sub Theyre {
my $self = shift;
return $self->They . "'" . $self->verb('re', 's');
}

=head3 C<theyve> or C<Theyve>
Returns the correct contraction for the pronoun with to have, with captilization. For example
$p->theyve;
or
$p->Theyve;
=cut

sub theyve {
my $self = shift;
return $self->they . "'" . $self->verb('ve', 's');
}

sub Theyve {
my $self = shift;
return $self->They . "'" . $self->verb('ve', 's');
}

1;

0 comments on commit 48a3efe

Please sign in to comment.