// comprehend.elh — public surface of the ELP comprehension front-end. // text → meaning-spec (the input half of the ELP; inverse of the realizer). extern fn parse_spec(text: String) -> [String] extern fn parse_spec_lang(text: String, lang: String) -> [String] extern fn parse_json(text: String) -> String extern fn parse_json_lang(text: String, lang: String) -> String // Analysis primitives (invertible morphology + deterministic grammar helpers): extern fn cp_tokenize(text: String) -> [String] extern fn cp_pron_concept(w: String) -> String extern fn cp_is_negation(w: String) -> Bool extern fn cp_is_neg_adverb(w: String) -> Bool extern fn cp_irr2(surface: String) -> [String] extern fn cp_reg_verb(w: String) -> [String] extern fn cp_analyze_verb(surface: String) -> [String] extern fn cp_verb_start(toks: [String], end: Int) -> Int extern fn cp_subord_start(toks: [String], n: Int) -> Int