Grammaticus ex machina : tone inventories as hypothesized by machine