1. A method implementable on a computing device for extracting one or more text motifs from one or more electronic documents, the method comprising: receiving 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); detecting one or more occurrences of the first text block in the one or more electronic documents; identifying one or more second text blocks in vicinity of each of the one or more occurrences of the first text block based on a pre-defined set of parameters, such that at least one of the one or more second text blocks is repeated at least two times in the one or more electronic documents; determining 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 at least one of the one or more second text blocks; and extracting the one or more text motifs from each of the one or more electronic documents.