public String testNgram(
            CmdOptions parser, Option ngram, boolean force, boolean read, boolean oblig) {
            String ngramValue = (String) parser.getOptionValue(ngram);
        if (ngramValue == null) {

            if (oblig) {
                System.err.println("BAD USAGE. ngram file must be defined: {-d | --dict} file");
                System.exit(0);
            } else {
                return null;
            }
        }

        boolean cpok = true;

        File cpfile = new File(ngramValue);
        if (!cpfile.exists()) {
            cpok = false;
        }

        if (read) {
            if (!cpok) {
                System.err.println("BAD USAGE. ngram file must be an existing file [" + ngramValue + "]");
                System.exit(0);
            }
        } else {
            if (cpok && !force) {
                ngramValue = null;
            }
        }

        return ngramValue;
    }