public static String lookupTerm(Keyword term, boolean capitalizedP, boolean pluralP) {
    if (pluralP &&
        capitalizedP) {
      if (term == OntosaurusUtil.KWD_CONCEPT) {
        return ("Concepts");
      }
      else if (term == OntosaurusUtil.KWD_RELATION) {
        return ("Relations");
      }
      else if (term == OntosaurusUtil.KWD_CONTEXT) {
        return ("Modules");
      }
      else if (term == OntosaurusUtil.KWD_INSTANCE) {
        return ("Instances");
      }
      else if (term == OntosaurusUtil.KWD_QUERY) {
        return ("Queries");
      }
      else if (term == OntosaurusUtil.KWD_OBJECT) {
        return ("Objects");
      }
      else {
        return (Native.stringCapitalize(term.symbolName) + "s");
      }
    }
    else if (capitalizedP) {
      if (term == OntosaurusUtil.KWD_CONCEPT) {
        return ("Concept");
      }
      else if (term == OntosaurusUtil.KWD_RELATION) {
        return ("Relation");
      }
      else if (term == OntosaurusUtil.KWD_CONTEXT) {
        return ("Module");
      }
      else if (term == OntosaurusUtil.KWD_INSTANCE) {
        return ("Instance");
      }
      else if (term == OntosaurusUtil.KWD_QUERY) {
        return ("Query");
      }
      else if (term == OntosaurusUtil.KWD_OBJECT) {
        return ("Object");
      }
      else {
        return (Native.stringCapitalize(term.symbolName));
      }
    }
    else if (pluralP) {
      if (term == OntosaurusUtil.KWD_CONCEPT) {
        return ("concepts");
      }
      else if (term == OntosaurusUtil.KWD_RELATION) {
        return ("relations");
      }
      else if (term == OntosaurusUtil.KWD_CONTEXT) {
        return ("modules");
      }
      else if (term == OntosaurusUtil.KWD_INSTANCE) {
        return ("instances");
      }
      else if (term == OntosaurusUtil.KWD_QUERY) {
        return ("queries");
      }
      else if (term == OntosaurusUtil.KWD_OBJECT) {
        return ("objects");
      }
      else {
        return (Native.stringDowncase(term.symbolName) + "s");
      }
    }
    else {
      if (term == OntosaurusUtil.KWD_CONCEPT) {
        return ("concept");
      }
      else if (term == OntosaurusUtil.KWD_RELATION) {
        return ("relation");
      }
      else if (term == OntosaurusUtil.KWD_CONTEXT) {
        return ("module");
      }
      else if (term == OntosaurusUtil.KWD_INSTANCE) {
        return ("instance");
      }
      else if (term == OntosaurusUtil.KWD_QUERY) {
        return ("query");
      }
      else if (term == OntosaurusUtil.KWD_OBJECT) {
        return ("object");
      }
      else {
        return (Native.stringDowncase(term.symbolName));
      }
    }
  }