We present two methods for building a finite-state transducer which generalizes a finitestate transduction to any word on a given alphabet. The methods are exact in the sense that the inferred transducer coincides on the inputs for which the initial function is defined. We apply the methods to the problem of grapheme-to-phoneme transcription. In this case,