A computational implementation of idiomatic and non-idiomatic constructions