Module:nn-verb-classes

Hello, you have come here looking for the meaning of the word Module:nn-verb-classes. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:nn-verb-classes, but we will also tell you about its etymology, its characteristics and you will know how to say Module:nn-verb-classes in singular and plural. Everything you need to know about the word Module:nn-verb-classes you have here. The definition of the word Module:nn-verb-classes will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:nn-verb-classes, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

This module needs documentation.
Please document this module by describing its purpose and usage on the documentation page.

-- Experimental module

local p = {}


function p.v1(word)
    --word = frame.args
    length = word:len()
    root = word:sub(1, length-1)
    inflection = {}
    inflection =  root .. 'ar'
    inflection = root .. 'a'
    inflection = root .. 'a'
    inflection = root .. 'ast'
    inflection = root .. 'ande' 
    inflection =  root
    inflection = word
    inflection = root .. 'a'
    inflection = root .. 'a'
    inflection = root .. 'a'
    
    inflection = root .. 'ing'
    inflection = root .. 'ar'
    return inflection
end    

function p.v2(word)
    --word = frame.args
    length = word:len()
    root = word:sub(1, length-1)
    inflection = {}    
    inflection =  root .. 'er'
    inflection = root .. 'te'
    inflection = root .. 't'
    inflection = root .. 'ast'
    inflection = root .. 'ande' 
    inflection =  root
    inflection = root .. 't'
    inflection = root .. 't'
    inflection = root .. 'te'
    
    inflection = root .. 'ing'
    inflection = root .. 'ar'
    return inflection
end    
 
function p.v3(word)
    --word = frame.args
    length = word:len()
    root = word:sub(1, length-1)
    inflection = {}
    
    if root:sub(length-1, length-1) == 'j' then
        root2 = root:sub(1, length-2)
    else
        root2 = root
    end
    length2 = root2:len()
    if root2:sub(length2, length2) == root2:sub(length2-1, length2-1) then
        root3 = root2:sub(1, length2-1)
    else
        root3 = root2
    end
    if word:find('$') then
        present_tense = word .. 'r'
    else
        present_tense = root .. 'er'
    end
    if not root3:find('ng$') and not root3:find('r$') and not root:find('øym') then
        if root3:find('$') then
            past_tense = root3 .. 'dde'
            past_participle = root3 .. 'dd'
            past_participle2 = root3 .. 'tt'
        else
            past_tense = root3 .. 'de'
            past_participle = root3 .. 'd'
            past_participle2 = root3 .. 't'
        end
    else
        past_tense = root3 .. 'de'
        past_participle = root3 .. 't'
    end
    passive_infinitive = root .. 'ast'
    present_participle = root .. 'ande'
    imperative = root2
    
    inflection =  present_tense
    inflection = past_tense
    inflection = past_participle
    inflection = past_participle2
    inflection = passive_infinitive
    inflection = present_participle
    inflection =  imperative
    inflection = root3 .. 'ing'
    inflection = root .. 'ar'
    return inflection
end 

function p.v4(frame)
    word = frame.args
    length = word:len()
    root = word:sub(1, length-1)
    inflection = {}
    if root:sub(length-1, length-1) == root:sub(length-2, length-2) then
        root2 = root:sub(1, length-2)
    else
        root2 = root
    end
    present_tense = root .. 'er'
    past_tense = root2 .. 'de'
    past_tense2 = root2 .. 'te'
    past_participle = root2 .. 't' 
    passive_infinitive = root .. 'ast'
    present_participle = root .. 'ande'
    imperative = root2
    
    inflection =  present_tense
    inflection = past_tense
    inflection = past_tense2
    inflection = past_participle
    inflection = passive_infinitive
    inflection = present_participle
    inflection =  imperative
    
    inflection = root .. 'ing'
    inflection = root .. 'ar'
end

return p