public bool HasHoloMero(PointerType p, Search search) { PointerType pbase; if (p.mnemonic == "HMERONYM") { pbase = PointerType.of("HASMEMBERPTR"); } else { pbase = PointerType.of("ISMEMBERPTR"); } for (int i = 0; i < offs.Length; i++) { SynSet s = new SynSet(offs[i], PartOfSpeech.of("noun"), "", search, 0); if (s.has(pbase) || s.has(pbase + 1) || s.has(pbase + 2)) { return(true); } } return(false); }
public bool HasHoloMero(PointerType p, Search search) { PointerType pbase; if (p.Mnemonic == "HMERONYM") pbase = PointerType.of("HASMEMBERPTR"); else pbase = PointerType.of("ISMEMBERPTR"); for (int i = 0; i < SynsetOffsets.Length; i++) { SynSet s = new SynSet(SynsetOffsets[i], PartOfSpeech.of("noun"), "", search, 0); if (s.has(pbase) || s.has(pbase + 1) || s.has(pbase + 2)) return true; } return false; }