All living languages change over time. The causes for this are many, onebeing the emergence and borrowing of new linguistic elements. Competitionbetween the new elements and older ones with a similar semantic or grammaticalfunction may lead to speakers preferring one of them, and leaving the other togo out of use. We introduce a general method for quantifying competitionbetween linguistic elements in diachronic corpora which does not requirelanguage-specific resources other than a sufficiently large corpus. Thisapproach is readily applicable to a wide range of languages and linguisticsubsystems. Here, we apply it to lexical data in five corpora differing inlanguage, type, genre, and time span. We find that changes in communicativeneed are consistently predictive of lexical competition dynamics.Near-synonymous words are more likely to directly compete if they belong to atopic of conversation whose importance to language users is constant over time,possibly leading to the extinction of one of the competing words. By contrast,in topics which are increasing in importance for language users,near-synonymous words tend not to compete directly and can coexist. Thissuggests that, in addition to direct competition between words, language changecan be driven by competition between topics or semantic subspaces.