The document proposes a text mining template-based algorithm to improve business intelligence by categorizing text. It begins with an introduction to data mining and text mining. It then discusses related work on text mining algorithms. The document proposes a methodology using a configuration file to identify fields in documents based on regular expressions. The algorithm reads documents line by line, matches lines to conditions in the configuration file, and stores the identified fields in an array. The array is then used to populate a structured table for analysis to improve decision making. The methodology is experimentally tested on 100 resumes to select candidates, demonstrating its ability to extract structured data from unstructured documents.