Basic n-gram parsing architecture.