The paper presents an elementary approach for the calculation of the entropyof a class of languages. This approach is based on the consideration ofroots of a real polynomial and is also suitable for calculating theBernoulli measure. The class of languages we consider here is ageneralisation of the Łukasiewicz language.