Johann Wolfgang Goethe's novel Elective Affinities employed chemical affinity as a metaphor and applied it to romantic relationships.