public void getFrequencies(String taggedString){
        String[] getTags = taggedString.split("\\s+");
        String noun1 = "NNS";
        String noun2 = "NN";
        String noun3 = "NNP";
        String noun4 = "NNPS";
        String verb1 = "VB";
        String verb2 = "VBD";
        String verb3 = "VBG";
        String verb4 = "VBN";
        String verb5 = "VBP";
        String verb6 = "VBZ";
        String preposition = "IN";
        String superlative1 = "JJS";
        String superlative2 = "RBS";
        String comparative1 = "JJR";
        String comparative2 = "RBR";
        String determiner1 = "DT";
        String determiner2 = "PDT";
        String determiner3 = "WDT";
        String adjective = "JJ";
        String pronoun = "PRP";
        ArrayList<String> nounlist = new ArrayList<String>();
        ArrayList<String> verblist = new ArrayList<String>();
        ArrayList<String> prepositionlist = new ArrayList<String>();
        ArrayList<String> superlativelist = new ArrayList<String>();
        ArrayList<String> comparativelist = new ArrayList<String>();
        ArrayList<String> determinerlist = new ArrayList<String>();
        ArrayList<String> adjectivelist = new ArrayList<String>();
        ArrayList<String> pronounlist = new ArrayList<String>();
        
        for(int i=0;i<getTags.length;i++){
            String[] splitted = getTags[i].split("/");
//            System.out.println(splitted[1]);
            if (splitted[1].equals(noun1)|splitted[1].equals(noun2)|splitted[1].equals(noun3)|splitted[1].equals(noun4)){
                nounlist.add(splitted[0]);
            }
            else if (splitted[1].equals(verb1)|splitted[1].equals(verb2)|splitted[1].equals(verb3)|splitted[1].equals(verb4)|splitted[1].equals(verb5)|splitted[1].equals(verb6)){
                verblist.add(splitted[0]);
            }
            else if (splitted[1].equals(preposition)){
                prepositionlist.add(splitted[0]);
            }
            else if (splitted[1].equals(superlative1)|splitted[1].equals(superlative2)){
                superlativelist.add(splitted[0]);
            }
            else if (splitted[1].equals(comparative1)|splitted[1].equals(comparative2)){
                comparativelist.add(splitted[0]);
            }
            else if (splitted[1].equals(determiner1)|splitted[1].equals(determiner2)|splitted[1].equals(determiner3)){
                determinerlist.add(splitted[0]);
            }
            else if (splitted[1].equals(adjective)){
                adjectivelist.add(splitted[0]);
            }
            else if (splitted[1].equals(pronoun)){
                pronounlist.add(splitted[0]);
            }
        }
        System.out.println(nounlist);
        System.out.println("--------------------------------------");
    }