An Introduction to English Syntax with applications to text analysis