| blib/lib/WordList/EN/ByClass/Adverb/TalkEnglish.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 12 | 20 | 60.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 4 | 6 | 66.6 |
| pod | n/a | ||
| total | 16 | 26 | 61.5 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package WordList::EN::ByClass::Adverb::TalkEnglish; | ||||||
| 2 | |||||||
| 3 | 1 | 1 | 272723 | use strict; | |||
| 1 | 2 | ||||||
| 1 | 55 | ||||||
| 4 | 1 | 1 | 4 | use warnings; | |||
| 1 | 2 | ||||||
| 1 | 64 | ||||||
| 5 | 1 | 1 | 3117 | use WordList; | |||
| 1 | 1877 | ||||||
| 1 | 66 | ||||||
| 6 | |||||||
| 7 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | ||||||
| 8 | our $DATE = '2025-01-13'; # DATE | ||||||
| 9 | our $DIST = 'WordListBundle-EN-ByClass-Adverb'; # DIST | ||||||
| 10 | our $VERSION = '0.004'; # VERSION | ||||||
| 11 | |||||||
| 12 | our @ISA = qw(WordList); | ||||||
| 13 | |||||||
| 14 | 1 | 1 | 467 | use Role::Tiny::With; | |||
| 1 | 6560 | ||||||
| 1 | 189 | ||||||
| 15 | with 'WordListRole::FromArray'; | ||||||
| 16 | |||||||
| 17 | sub _array { | ||||||
| 18 | 0 | 0 | require TableData::Lingua::Word::EN::ByClass::Adverb::TalkEnglish; | ||||
| 19 | |||||||
| 20 | 0 | my $t = TableData::Lingua::Word::EN::ByClass::Adverb::TalkEnglish->new; | |||||
| 21 | 0 | my $ary = []; | |||||
| 22 | $t->each_row_arrayref( | ||||||
| 23 | sub { | ||||||
| 24 | 0 | 0 | my $row = shift; | ||||
| 25 | 0 | push @$ary, $row->[0]; | |||||
| 26 | 0 | 1; | |||||
| 27 | } | ||||||
| 28 | 0 | ); | |||||
| 29 | 0 | $ary; | |||||
| 30 | } | ||||||
| 31 | |||||||
| 32 | our $DYNAMIC = 1; | ||||||
| 33 | our $SORT = 'custom'; | ||||||
| 34 | |||||||
| 35 | our %STATS = ("num_words_contains_whitespace",0,"num_words_contain_nonword_chars",0,"shortest_word_len",3,"longest_word_len",13,"num_words_contains_nonword_chars",0,"avg_word_len",7.7280701754386,"num_words_contain_whitespace",0,"num_words_contains_unicode",0,"num_words_contain_unicode",0,"num_words",114); # STATS | ||||||
| 36 | |||||||
| 37 | 1; | ||||||
| 38 | # ABSTRACT: Words that are used as adverbs only, from talkenglish.com | ||||||
| 39 | |||||||
| 40 | __END__ |