add NGramAnalyzer based on NGramTokenizer

switched to `json.optInt()` in the latest push.