A computer-implemented method of (600) and a system (222, 208) for processing a text stream. The method comprises accessing (602) the text stream; parsing (604) the text stream; analyzing (606) a first collection of words to identify a homonym candidate; generating (608) a homonym word pattern, the homonym word pattern comprising at least one word of the first collection of words; determining (610), for at least one word of the homonym word pattern, a first context element; generating (612) a homonym context pattern; analyzing (614) a second collection of words to identify a non-homonym candidate having a non-homonym context pattern at least partially matching the homonym context pattern, the non-homonym candidate being associated with a lexical tag; and assigning (616) the lexical tag associated with the non-homonym candidate to the homonym candidate.
Method for word sense disambiguation for homonym words based on part of speech (POS) tag of a non-homonym word