GATE
Version 3.1-2270

gate.creole.morph
Class MorphFunctions

java.lang.Object
  extended by gate.creole.morph.MorphFunctions

public class MorphFunctions
extends Object

Title:

Description:

Copyright: Copyright (c) 2003

Company:

Version:
1.0
Author:
not attributable

Constructor Summary
MorphFunctions()
          Default Constructor
 
Method Summary
 String getAffix()
          Method returns the found affix of the word provided to the program, for which the root and the affix has to be found
 String irreg_stem(String root, String affix)
          returns the "root" as result and sets "affix" as affix
 String null_stem()
          returns the input as the root word
 String semi_reg_stem(int del, String add)
          Deletes the "del" given number of characters from right,
appends the "add" given string at the end
and returns this new string
 void setInput(String input)
          Sets the input for which the roor entry has to be found in the program
 String stem(int del, String add, String affix)
          Deletes the "del" given number of characters from right,
appends the "add" given string at the end and
sets the affix as "affix"
and returns this new string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MorphFunctions

public MorphFunctions()
Default Constructor

Method Detail

getAffix

public String getAffix()
Method returns the found affix of the word provided to the program, for which the root and the affix has to be found

Returns:
affix if found, " " otherwise

setInput

public void setInput(String input)
Sets the input for which the roor entry has to be found in the program

Parameters:
input -

stem

public String stem(int del,
                   String add,
                   String affix)
Deletes the "del" given number of characters from right,
appends the "add" given string at the end and
sets the affix as "affix"
and returns this new string


semi_reg_stem

public String semi_reg_stem(int del,
                            String add)
Deletes the "del" given number of characters from right,
appends the "add" given string at the end
and returns this new string


irreg_stem

public String irreg_stem(String root,
                         String affix)
returns the "root" as result and sets "affix" as affix


null_stem

public String null_stem()
returns the input as the root word


GATE
Version 3.1-2270