salutations, thank you for the responses. almut: the computer has 1GB of memory and 2.4GHz of processment. we have already tested both ways: conjugating on-the-fly and reading from a lexicon with all the inflected forms. we want the analyser to analyse only one input, the $input variable, by any of those two forms (or any other one that anyone may suggest). note: we have already tested it with a language's dictionary which has 16008 roots. for each root, the irregular base for conjugating is given, as well as the grammatical class (thus the analyser knows if it will conjugate or decline): this root dictionary has 499 kilobytes and 16008 lines or words; there are 3 persons, 2 numbers and 8 tenses (thus 48 forms) for verbs (the conjugation is, basically, adding a simple ending depending on person, number and tense/mood), and 8 cases and 2 numbers for nouns (thus 16 forms); nouns take some changes in the root, which are accomplished by a substitution regular expression. the whole lexicon has 8 megabytes and 385090 lines, including roots and inflected forms. as both you and dk suggested "hashes", we will look for what it is and how it's used, and see if we can use it in our case. in case hashes work (and in case we understood your suggestion correctly), we will post the result here. any more suggestions, or any more information needed? thank you in advance.

In reply to Re: reading dictionary file -> morphological analyser by pc2
in thread reading dictionary file -> morphological analyser by pc2

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.