1. A method for optimizing generation of a regular expression utilized for entity extraction, the method comprising the steps of: receiving, at a server, an input from a user of the server, the input enabling at least a first performance optimization parameter; receiving, from a user of a client computer, a query comprising a plain text word; receiving, at the server, data extracted from an electronic repository that is communicatively connected to the server, the data describing probabilities of spelling errors based, at least in part, on a number of syllables in the plain text word; initializing, at the server, the first performance optimization parameter based, at least in part, on the received data and the input enabling at least the first performance optimization parameter; optimizing performance of generating the regular expression, at the server, by, at least in part, identifying, using the first performance optimization parameter, a syllable within the plain text word that has a high probability of at least one of an incorrectly substituted and transposed character within a spelling of a word having a same number of syllables as the plain text word; selecting, at the server, a character in the syllable identified; identifying, at the server, a group of characters from a confusion matrix that are commonly confused with the character selected; generating, at the server, a set of characters for the character selected, wherein the set of characters begins with the character selected followed by and ending with the group of characters from the confusion matrix; determining, at the server, that a probability of omitting the character selected exceeds a threshold, and in response, associating, at the server, a tag with the set of characters; generating, at the server, a regular expression by concatenating the set of characters with one or more additional sets of characters; based, at least in part, on the tag and the regular expression, searching, at the server, the electronic repository for text data describing a spelling of the plain text word in which at least one of (i) the character selected and (ii) one or more characters of the group of characters from the confusion matrix is omitted; and providing, to the user of the client computer, search results based on the regular expression.