n-gram of term gen code, done