\input zb-basic \input zb-ioport \iteman{io-port 05826703} \itemau{Gecse, Roland; Kov\'acs, Attila} \itemti{Consistency of stochastic context-free grammars.} \itemso{Math. Comput. Modelling 52, No. 3-4, 490-500 (2010).} \itemab Summary: Computational linguistics play an important role in modeling various applications. Stochastic context-free grammars (SCFGs), for instance, are widely used in compiler testing, natural language processing (NLP), speech recognition and bioinformatics. The commonality of the former projects is that all require consistent SCFGs. This article addresses the consistency problem of SCFGs. We introduce a criterion for deciding the consistency and present a method for turning an inconsistent SCFG into consistent. The feasibility of our theory is demonstrated on random test data generation for some programming languages and formal notations. \itemrv{~} \itemcc{} \itemut{probabilistic grammar; consistency; test data generation} \itemli{doi:10.1016/j.mcm.2010.03.046} \end