write some linguistics functions