Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add they're/(s)he's and they've/(s)he's contractions #927

Merged
merged 1 commit into from
Oct 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;