sub get_stop{
# sample
my %stop =
map { $_ => 1 }
qw(and any the they);
\%stop;
}
sub get_punc{
# sample
my %punc =
map { $_ => ' ' }
qw(’ ‘ ” “);
\%punc;
}
####
s/(?\w+;)/$punc->{$1}||$1/eg;
##
##
next if $stop->{$_};
##
##
''words in double single quotes''
##
##
for (@words){
s/^['-]+//;
s/['-]+s?$//;
next if length() < $min or length() > $max;
next if $stop->{$_};
next if /\d/ and not /^[12]\d{3}s?$/;
# next if /--/; # not needed anymore
$words_all->{$_}->{$file_key} += 1;
}
##
##
--
@/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/;
map{y/X_/\n /;print}map{pop@$_}@/for@/