: The objective of our research is to computationally model word production and its disorders by means of artificial neural networks. In the current study we develop and analyze an algorithm that generates a distributed semantic coding from a given semantic tree-structure classification of words. With the algorithm it is possible to generate semantic representations that are compact and easy to modify. This renders the coding method suitable for our multi-layer perceptron based neural network model of word production. The model is shown to be able to account for a variety of performance patterns observed in four Finnish aphasia patients suffering from word-finding difficulties.