This paper introduces a novel hierarchical stemming method for the Persian language, utilizing part-of-speech tags to improve accuracy and speed. The proposed technique integrates hash tables and deterministic finite automata (DFA) to effectively remove word prefixes and suffixes, achieving an average accuracy of 95.37% in tests. The method is structured to handle the unique morphological characteristics of Persian nouns, verbs, and adjectives, thus enhancing information retrieval processes.