File Coverage

blib/lib/Games/Word/Wordlist/KBBI.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 20 20 100.0


line stmt bran cond sub pod time code
1             package Games::Word::Wordlist::KBBI;
2              
3             our $DATE = '2014-08-07'; # DATE
4             our $VERSION = '0.01'; # VERSION
5              
6 1     1   2823 use 5.010001;
  1         3  
  1         51  
7 1     1   6 use strict;
  1         2  
  1         35  
8 1     1   6 use warnings;
  1         2  
  1         34  
9              
10 1     1   1048 use parent qw(Games::Word::Wordlist);
  1         437  
  1         6  
11              
12             sub new {
13 1     1 1 4024 bless Games::Word::Wordlist->new ([map {split} ]), shift;
  5410         34403  
14             }
15              
16             1;
17              
18             # ABSTRACT: Wordlist from Kamus Besar Bahasa Indonesia (Indonesian)
19              
20             =pod
21              
22             =encoding UTF-8
23              
24             =head1 NAME
25              
26             Games::Word::Wordlist::KBBI - Wordlist from Kamus Besar Bahasa Indonesia (Indonesian)
27              
28             =head1 VERSION
29              
30             This document describes version 0.01 of Games::Word::Wordlist::KBBI (from Perl distribution Games-Word-Wordlist-KBBI), released on 2014-08-07.
31              
32             =head1 SYNOPSIS
33              
34             use Games::Word::Wordlist::KBBI;
35             my $wl = Games::Word::Wordlist::KBBI->new;
36             my $word = $wl->random_word;
37             print "We have a word." if $wl->is_word ($word);
38              
39             =head1 DESCRIPTION
40              
41             C<< Games::Word::Wordlist::KBBI >> subclasses L<< Games::Word::Wordlist >>,
42             giving you a managable wordlist preloaded with the Indonesian words from Kamus
43             Besar Bahasa Indonesia (currently the third edition, 2001). It contains entries
44             from the dictionary minus ones that have non-alphanumeric characters. There are
45             capitalized words, acronyms, as well as all-lowercase ones.
46              
47             Some stats:
48              
49             Number of words: 47380
50             Shortest word length: 1
51             Longest word length: 24
52             Average word length: 7.76 characters
53             Number of 5-letter words: 6799
54              
55             Since C<< Games::Word::Wordlist >> is subclassed, all its methods (except C<<
56             new >>) are available.
57              
58             Kamus Besar Bahasa Indonesia is the definitive Indonesian dictionary, published
59             by Pusat Bahasa.
60              
61             =head1 SEE ALSO
62              
63             L<< Games::Word::Wordlist >>.
64              
65             =head1 HOMEPAGE
66              
67             Please visit the project's homepage at L.
68              
69             =head1 SOURCE
70              
71             Source repository is at L.
72              
73             =head1 BUGS
74              
75             Please report any bugs or feature requests on the bugtracker website L
76              
77             When submitting a bug or request, please include a test-file or a
78             patch to an existing test-file that illustrates the bug or desired
79             feature.
80              
81             =head1 AUTHOR
82              
83             Steven Haryanto
84              
85             =head1 COPYRIGHT AND LICENSE
86              
87             This software is copyright (c) 2014 by Steven Haryanto.
88              
89             This is free software; you can redistribute it and/or modify it under
90             the same terms as the Perl 5 programming language system itself.
91              
92             =cut
93              
94             __DATA__