Patent Document ID: 9483463
Application ID: 13608312

Base Claim:
1. A method for extracting one or more text motifs from one or more electronic documents, the method comprising: receiving, by a processor, a first text block from a user, wherein the first text block corresponds to at least one of a largest-maximal repeat (LMR) or a super-maximal repeat (SMR); receiving, by the processor via an input device coupled to the processor, 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; detecting, by the processor, one or more occurrences of the first text block in the one or more electronic documents based on the array of repeats; identifying, in the one or more electronic documents by the processor, a second text block in vicinity of an occurrence of the first text block based on a pre-defined set of parameters, 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, wherein the pre-defined set of parameters comprises a maximum number of text blocks in the one or more text motifs; determining, by the processor, the 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; checking, by the processor, 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 the maximum number of text blocks in the one or more text motifs, wherein the checking for extension 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; extracting, by the processor, the one or more text motifs from each of the one or more electronic documents; and creating, by the processor, a template by collating the one or more extracted text motifs.

---

Claim 3:
3. The method of claim 1 , wherein the LMR corresponds to a repeat comprising at least one occurrence that is right-context and left-context unique.