Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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'  => '',
    }, ........ );
  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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://151761]
[MidLifeXis]: I think I forgot "running on a farm of commodore 64, vic 20s, trs 80s, and apple ]|[e systems"
[GotToBTru]: oh I know what it is .. but it is a number only slightly useful to me and of no possible use to our customer
[MidLifeXis]: Whew - you just saved the free world. <o)
[GotToBTru]: i guess it's a placeholder, the code will only fill it in if there is nothing else to use
[GotToBTru]: but then .. if you have nothing to say, why not say nothing?
[MidLifeXis]: I have a user who has a lot of say on how some of our processes work that abhors significant blanks. Perhaps that is a part of it. A not-so-obvious "this space intentionally left blank" indicator.
[MidLifeXis]: On the back end, however, that doesn't mean that i have to use that value to indicate "undefined", no matter how much he thinks I should.

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2017-01-20 19:14 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (176 votes). Check out past polls.