Jakobson sees metaphor and metonymy as the characteristic modes of binarily opposed polarities which between them underpin the two-fold process of selection and combination by which linguistic signs are formed . . . .
Thus messages are constructed, as Saussure said, by a combination of a 'horizontal' movement, which combines words together, and a 'vertical' movement, which selects the particular words from the available inventory or 'inner storehouse' of the language. The combinative (or syntagmatic) process manifests itself in contiguity (one word being places next to another) and its mode is metonymic. The selective (or associative) process manifests itself in similarity (one word or concept being 'like' another) and its mode is metaphoric. (Hawkes, pp. 77-8.)
Download ebooks on http://www.frenchtheory.com/
See that post with different algorithms in metabole
See the journal French Metablog with today different posts