From text to typology : towards implementing quantitative typology on corpora from endangered languages