CAB/Analyzer/EqPhoX.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 16 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::EqPhoX
4 ## Author: Bryan Jurish <moocow@cpan.org>
5 ## Description: phonetic-equivalence class expansion: intensional via gfsmxl cascade
6  
7 ##==============================================================================
8 ## Package: Analyzer::Morph
9 ##==============================================================================
10 package DTA::CAB::Analyzer::EqPhoX;
11 use DTA::CAB::Analyzer::EqPho::Cascade;
12 use strict;
13 our @ISA = qw(DTA::CAB::Analyzer::EqPho::Cascade);
14  
15 ## $obj = CLASS_OR_OBJ->new(%args)
16 ## + object structure: see DTA::CAB::Analyzer::Automaton::Gfsm::XL
17 sub new {
18 my $that = shift;
19 my $aut = $that->SUPER::new(
20 ##-- defaults
21  
22 ##-- analysis selection
23 label => 'eqphox',
24 analyzeGet => '$_->{msafe} || $_->{exlex} || !$_->{lts} ? qw() : (map {$_->{hi}} @{$_->{lts}})',
25 attInput => 1,
26 allowTextRegex => DTA::CAB::Analyzer::_am_wordlike_regex(),
27 tolower=>0,
28 tolowerNI=>0,
29 toupperI=>0,
30  
31 ##-- analysis parameters (obsolete: prefer use of 'analyzePre' key)
32 max_weight => [1.2,10],
33 max_paths => 8,
34 max_ops => -1,
35  
36 ##-- verbosity
37 check_symbols => 0,
38  
39 ##-- user args
40 @_
41 );
42 return $aut;
43 }
44  
45 1; ##-- be happy
46  
47 __END__