10. A system for extracting one or more text motifs from one or more electronic documents, the system comprising: a processor configured to: detect one or more occurrences of a first text block in the one or more electronic documents, wherein the first text block corresponds to at least one of a largest-maximal repeat (LMR) or a super-maximal repeat (SMR) based on an array of repeats, wherein the array of repeats comprises a list of repeats of one or more text blocks occurring at one or more positions in the one or more electronic documents, the list of repeats being received at the processor via an input device; identify, in the one or more electronic documents, a second text block in vicinity of an occurrence of the first text block based on a maximum length of a gap between the first text block and the second text block, such that the second text block and the first text block are repeated together, at least two times in the one or more electronic documents; determine one or more text motifs in the one or more electronic documents, wherein each of the one or more text motifs is a combination of the first text block and the second text block; check for extension of the one or more text motifs if a number of text blocks in the one or more text motifs is less than a maximum number of text blocks in the one or more text motifs, wherein the check further comprises using the one or more text motifs as a new text block and repeating the identifying, and determining steps for the new text block until the maximum number of text blocks is reached; extract the one or more text motifs from each of the one or more electronic documents; and create a template by collating the one or more extracted text motifs.
10. A system for extracting one or more text motifs from one or more electronic documents, the system comprising: a processor configured to: detect one or more occurrences of a first text block in the one or more electronic documents, wherein the first text block corresponds to at least one of a largest-maximal repeat (LMR) or a super-maximal repeat (SMR) based on an array of repeats, wherein the array of repeats comprises a list of repeats of one or more text blocks occurring at one or more positions in the one or more electronic documents, the list of repeats being received at the processor via an input device; identify, in the one or more electronic documents, a second text block in vicinity of an occurrence of the first text block based on a maximum length of a gap between the first text block and the second text block, such that the second text block and the first text block are repeated together, at least two times in the one or more electronic documents; determine one or more text motifs in the one or more electronic documents, wherein each of the one or more text motifs is a combination of the first text block and the second text block; check for extension of the one or more text motifs if a number of text blocks in the one or more text motifs is less than a maximum number of text blocks in the one or more text motifs, wherein the check further comprises using the one or more text motifs as a new text block and repeating the identifying, and determining steps for the new text block until the maximum number of text blocks is reached; extract the one or more text motifs from each of the one or more electronic documents; and create a template by collating the one or more extracted text motifs. 12. The system of claim 10 , wherein the processor is further configured to store the extracted one or more text motifs as the template, wherein the extracted one or more text motifs are collated to create the template.