The word affinity provides a good example. Affinity means a close relationship based on a common origin or structure as well as the tendency of a substance to combine with another. Note that the common idea here is one of relation. That’s because affinity comes from the Latin word afinis, which means related.
Some more informal fields of writing may accept using affinity to mean ability or aptitude. However, more effective technical writing will employ precision of language and simply use these words when those meanings are intended.
Consider the example sentence in the cropped graphic above. Clearly the writer did not intend to suggest that the design shares a common origin or structure with its environment or that the design is attracted to its environment and somehow motivated to combine with it. The writer uses affinity to mean ability, which use is less effective for technical writing. Revising that sentence into something more effective is easy. Just use the word with the intended meaning.