Disclosed is a system for determining contextually-relevant keywords related to text of an electronic document. The system comprises a memory, a database arrangement comprising an ontology and a synonym databank, a data processing arrangement and a sever arrangement. The data processing arrangement is operable to fetch the electronic document stored within the memory. Furthermore, the data processing arrangement determines the common words from the ontology and the synonyms corresponding to the common words from synonym databank. Moreover, the data processing arrangement determines the generated set of keywords comprising the common words and the synonyms. The server arrangement determines a preference score and an importance score for each keyword of the generated set of keywords. Furthermore, the server arrangement determines the cumulative rank of each keyword based on the preference score and the importance score, therefore determining contextually-relevant keywords.