App-LinguaIDUtils

 view release on metacpan or  search on metacpan

lib/App/LinguaIDUtils.pm  view on Meta::CPAN

    result_naked => 1,
};
sub num_to_word {
    require Lingua::ID::Nums2Words;

    my %args = @_;

    [map {Lingua::ID::Nums2Words::nums2words($_)} @{ $args{nums} }];
}

$SPEC{word_to_num} = {
    v => 1.1,
    summary => 'Convert word ("seratus dua puluh tiga") to number (123)',
    'x.no_index' => 1,
    args => {
        %arg_words,
    },
    result_naked => 1,
};
sub word_to_num {
    require Lingua::ID::Words2Nums;

    my %args = @_;

    [map {Lingua::ID::Words2Nums::words2nums($_)} @{ $args{words} }];
}

1;
# ABSTRACT: Command-line utilities related to the Indonesian language

__END__

=pod

=encoding UTF-8

=head1 NAME

App::LinguaIDUtils - Command-line utilities related to the Indonesian language

=head1 VERSION

This document describes version 0.02 of App::LinguaIDUtils (from Perl distribution App-LinguaIDUtils), released on 2016-01-18.

=head1 SYNOPSIS

This distribution provides the following command-line utilities:

=over

=item * L<id-n2w>

=item * L<id-w2n>

=back

=head1 DESCRIPTION

This distribution will become a collection of CLI utilities related to
Indonesian language. Currently it contains very little and the collection will
be expanded in subsequent releases.

=for Pod::Coverage .+

=head1 HOMEPAGE

Please visit the project's homepage at L<https://metacpan.org/release/App-LinguaIDUtils>.

=head1 SOURCE

Source repository is at L<https://github.com/perlancar/perl-App-LinguaIDUtils>.

=head1 BUGS

Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=App-LinguaIDUtils>

When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.

=head1 SEE ALSO

=head1 AUTHOR

perlancar <perlancar@cpan.org>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=cut



( run in 2.163 seconds using v1.01-cache-2.11-cpan-97f6503c9c8 )