1. A method for identifying synonyms, the method comprising: obtaining, by a server, any two words to be identified; determining that a shortest edit distance between the two words is less than or equal to an edit distance threshold; determining whether both of the two words exist in a preset knowledge database; if both of the two words exist in the preset knowledge database, then finding a smallest granularity type with highest weight value for each word in the knowledge database; if the two words have the same smallest granularity type with highest weight value, then determining that the two words are synonyms; and if the two words do not have the same smallest granularity type with highest weight value, then determining that the two words are non-synonyms.