Morphological analysis and stress assignment are important stages of linguistic preprocessing in a text-to-speech system for german. In this paper we present an expert system in PROLOG which is intended to solve both problems as well as its linguistic basis. The underlying idea is that word segmentation in german can give multiple correct solutions - with different possibilities of spelling - and that the expert system methodology is a good framework for such class of problems.