Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Perl and Morphology

by ViceRaid (Chaplain)
on Mar 14, 2002 at 17:57 UTC ( #151761=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %analysed = (
        baSlar     => ['plural'],
        baSlarimiz => ['plural', 'possessed by us'],
        baSimda    => ['possessed by me', 'locative'],
    );
    
  2. or download this
    sub findroot {
        my @words = @_;
    ...
        #return the stem - i.e. the longest common element
        return [ sort { length $b <=> length $a } keys %stems ]->[0];
    }
    
  3. or download this
    imda: 'possessed by me', 'locative'
    
  4. or download this
    use Algorithm::Permute qw( permute );
    # not so fast as other modules, but it compiled OK on cygwin
    ...
        return if $incrnext;
        return @lengths;
    }
    
  5. or download this
    @possibles = ( {
     'i'   => 'locative',
    ...
     'im'  => 'locative',
     'da'  => 'poss.by.me',
    }, ........ );
    
  6. or download this
    my %analysed = (
        baSlar     => ['root:head', 'plural'],
        baSlarimiz => ['root:head', 'plural', 'possessed by us'],
        baSimda    => ['root:head', 'possessed by me', 'locative'],
    );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://151761]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2015-07-02 01:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (25 votes), past polls