-
Notifications
You must be signed in to change notification settings - Fork 0
/
French.pm
49 lines (33 loc) · 812 Bytes
/
French.pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
use strict;
use warnings;
use utf8;
package Lingua::Boolean::French;
# ABSTRACT: provides French rules to Lingua::Boolean
=head1 DESCRIPTION
This module provides rules for French to C<Lingua::Boolean>.
=cut
=head1 METHODS
=head2 new
C<new()> creates a new C<Lingua::Boolean::French> object. This is
intended for consumption by L<Lingua::Boolean> only.
=cut
sub new {
my $class = shift;
my $LANG = 'fr';
my $LANGUAGE = 'Français';
my $match;
$match->{True} = [qr{^oui$}i, qr{^ok$}i, qr{^vraie?$}i, qr{^[1-9]$}];
$match->{False} = [qr{^n(?:on?)?$}i, qr{^faux$}i, qr{^0$}];
my $self = {
LANG => $LANG,
LANGUAGE => $LANGUAGE,
match => $match,
};
bless $self, $class;
return $self;
}
=head1 SEE ALSO
L<Lingua::Boolean>
=cut
1;
__END__