public String applyPosRule(lcsDictionaryEntry rde, HashMap rules){
        String word =rde.getMeaning();
        String partOfSpeech = rde.getPos();
        Vector rule = (Vector)rules.get(partOfSpeech);
        if(((Boolean)rule.elementAt(0)).booleanValue()){
            int exception = (int)(Math.random()*100);
            if (exception >= ((Integer)rule.elementAt(2)).intValue()){
                if(((Boolean)rule.elementAt(3)).booleanValue()){
                    if(((Boolean)rule.elementAt(4)).booleanValue()){
                        word = rule.elementAt(1) + word;
                    } else {
                        if (syllableBreaks.size()<2){
                            word = rule.elementAt(1) + word;
                        } else {
                            word = (String)rule.elementAt(1) + word.substring(getFirstSyllableBreak());
                        }
                    }
                } else {
                    if(((Boolean)rule.elementAt(4)).booleanValue()){
                        word = word + rule.elementAt(1);
                    } else {
                        if (syllableBreaks.size()<2){
                            word = word + rule.elementAt(1);
                        } else {
                            word = word.substring(0,getLastSyllableBreak()) + (String)rule.elementAt(1);
                        }
                    }
                }
            } else {
                System.out.println("Exception Found: " + exception);
            }
        }
        return word;
    }