CAB/Analyzer/EqPho/FST.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 ## -*- Mode: CPerl -*-
2 ##
3 ## File: DTA::CAB::Analyzer::EqPho::FST.pm
4 ## Author: Bryan Jurish <moocow@cpan.org>
5 ## Description: phonetic equivalence class expansion via Gfsm::Automaton
6  
7 ##==============================================================================
8 ## Package: Analyzer::Morph
9 ##==============================================================================
10 package DTA::CAB::Analyzer::EqPho::FST;
11 use DTA::CAB::Analyzer::Automaton::Gfsm;
12 use Carp;
13 use strict;
14 our @ISA = qw(DTA::CAB::Analyzer::Automaton::Gfsm);
15  
16 ## $obj = CLASS_OR_OBJ->new(%args)
17 ## + object structure: see DTA::CAB::Analyzer::Automaton::Gfsm, DTA::CAB::Analyzer::Automaton
18 sub new {
19 my $that = shift;
20 my $aut = $that->SUPER::new(
21 ##-- overrides
22 #tolower => 0,
23 #check_symbols => 0,
24  
25 ##-- analysis selection
26 label => 'eqpho',
27 analyzeGet => '$_[0]{lts} ? (map {$_->{hi}} @{$_[0]{lts}}) : qw()',
28 attInput => 1,
29 wantAnalysisLo => 1,
30 allowTextRegex => '^(?:(?:[[:alpha:]\-\@]*[[:alpha:]]+)|(?:[[:alpha:]]+[[:alpha:]\-\@]+))(?:\'s)?$',
31 #allowWordRegex => '.',
32  
33 ##-- type expansion
34 #typeKeys => [qw(eqpho)],
35  
36 ##-- user args
37 @_
38 );
39 return $aut;
40 }
41  
42 ##==============================================================================
43 ## Analysis Formatting
44 ##==============================================================================
45  
46  
47 1; ##-- be happy
48  
49 __END__