added option for NGram size