Moved linguistic functions into main module.

Will work on structure after proof-of-concept is completed.