| 1 | package WordList::Phrase::ID::Proverb::KBBI; | ||
| 2 | |||
| 3 | 1 | our $DATE = '2016-01-13'; # DATE | |
| 4 | 1 | our $VERSION = '0.03'; # VERSION | |
| 5 | |||
| 6 | 1 | ▶ | use WordList; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | our @ISA = qw(WordList); | |
| 8 | |||
| 9 | 1 | our %STATS = ("shortest_word_len",11,"num_words_contains_nonword_chars",1713,"num_words",1713,"num_words_contains_whitespace",1713,"avg_word_len",31.4284880326912,"longest_word_len",110,"num_words_contains_unicode",0); # STATS | |
| 10 | |||
| 11 | 1 | 1; | |
| 12 | # ABSTRACT: Proverb phrases from Kamus Besar Bahasa Indonesia | ||
| 13 | |||
| 14 | |||
| 15 | |||
| 16 | |||
| 17 | =pod | ||
| 18 | |||
| 19 | =encoding UTF-8 | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | WordList::Phrase::ID::Proverb::KBBI - Proverb phrases from Kamus Besar Bahasa Indonesia | ||
| 24 | |||
| 25 | =head1 VERSION | ||
| 26 | |||
| 27 | This document describes version 0.03 of WordList::Phrase::ID::Proverb::KBBI (from Perl distribution WordList-Phrase-ID-Proverb-KBBI), released on 2016-01-13. | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | use WordList::Phrase::ID::Proverb::KBBI; | ||
| 32 | |||
| 33 | my $wl = WordList::Phrase::ID::Proverb::KBBI->new; | ||
| 34 | |||
| 35 | # Pick a (or several) random word(s) from the list | ||
| 36 | my $word = $wl->pick; | ||
| 37 | my @words = $wl->pick(3); | ||
| 38 | |||
| 39 | # Check if a word exists in the list | ||
| 40 | if ($wl->word_exists('foo')) { ... } | ||
| 41 | |||
| 42 | # Call a callback for each word | ||
| 43 | $wl->each_word(sub { my $word = shift; ... }); | ||
| 44 | |||
| 45 | # Get all the words | ||
| 46 | my @all_words = $wl->all_words; | ||
| 47 | |||
| 48 | =head1 STATISTICS | ||
| 49 | |||
| 50 | +----------------------------------+------------------+ | ||
| 51 | | key | value | | ||
| 52 | +----------------------------------+------------------+ | ||
| 53 | | avg_word_len | 31.4284880326912 | | ||
| 54 | | longest_word_len | 110 | | ||
| 55 | | num_words | 1713 | | ||
| 56 | | num_words_contains_nonword_chars | 1713 | | ||
| 57 | | num_words_contains_unicode | 0 | | ||
| 58 | | num_words_contains_whitespace | 1713 | | ||
| 59 | | shortest_word_len | 11 | | ||
| 60 | +----------------------------------+------------------+ | ||
| 61 | |||
| 62 | The statistics is available in the C<%STATS> package variable. | ||
| 63 | |||
| 64 | =head1 SEE ALSO | ||
| 65 | |||
| 66 | Converted from L<Games::Word::Phraselist::KBBI> 0.03. | ||
| 67 | |||
| 68 | =head1 HOMEPAGE | ||
| 69 | |||
| 70 | Please visit the project's homepage at L<https://metacpan.org/release/WordList-Phrase-ID-Proverb-KBBI>. | ||
| 71 | |||
| 72 | =head1 SOURCE | ||
| 73 | |||
| 74 | Source repository is at L<https://github.com/perlancar/perl-WordList-Phrase-ID-Proverb-KBBI>. | ||
| 75 | |||
| 76 | =head1 BUGS | ||
| 77 | |||
| 78 | Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=WordList-Phrase-ID-Proverb-KBBI> | ||
| 79 | |||
| 80 | When submitting a bug or request, please include a test-file or a | ||
| 81 | patch to an existing test-file that illustrates the bug or desired | ||
| 82 | feature. | ||
| 83 | |||
| 84 | =head1 AUTHOR | ||
| 85 | |||
| 86 | perlancar <perlancar@cpan.org> | ||
| 87 | |||
| 88 | =head1 COPYRIGHT AND LICENSE | ||
| 89 | |||
| 90 | This software is copyright (c) 2016 by perlancar@cpan.org. | ||
| 91 | |||
| 92 | This is free software; you can redistribute it and/or modify it under | ||
| 93 | the same terms as the Perl 5 programming language system itself. | ||
| 94 | |||
| 95 | =cut | ||
| 96 | |||
| 97 | |||
| 98 | __DATA__ | ||