WiktionaryResource extends AbstractResource { public String getGloss(Entity entity) throws LexicalSemanticResourceException { return WiktionaryUtils.getGlossFromEntity(wkt, entity); } WiktionaryResource(
    		Language language,
    		String wiktionaryDirectory); @Override void setIsCaseSensitive(boolean isCaseSensitive); @Override boolean getIsCaseSensitive(); boolean containsLexeme(String lexeme); boolean containsEntity(Entity entity); Set<Entity> getEntity(String lexeme); Set<Entity> getEntity(String lexeme, PoS pos); Set<Entity> getEntity(String lexeme, PoS pos, String sense); Set<Entity> getParents(Entity entity); Set<Entity> getChildren(Entity entity); int getNumberOfEntities(); Iterable<Entity> getEntities(); @Override Set<Entity> getNeighbors(Entity entity); String getResourceName(); String getResourceVersion(); int getShortestPathLength(Entity firstEntity, Entity secondEntity); String getGloss(Entity entity); Set<Entity> getRelatedEntities(Entity entity, SemanticRelation semanticRelation); Set<String> getRelatedLexemes(String lexeme, PoS pos, String sense, LexicalRelation lexicalRelation); @Override Entity getRoot(); @Override Entity getRoot(PoS pos); @Override Entity getMostFrequentEntity(String lexeme); @Override Entity getMostFrequentEntity(String lexeme, PoS pos);  }
@Test public void testGetGloss() throws Exception { Set<Entity> entities; wiktionaryEnglish.setIsCaseSensitive(false); entities = wiktionaryEnglish.getEntity("mine"); String caseInSensitiveGloss = new String(); for (Entity e : entities) { System.out.println(e); System.out.println(wiktionaryEnglish.getGloss(e)); caseInSensitiveGloss += wiktionaryEnglish.getGloss(e); } String caseSensitiveGloss = new String(); wiktionaryEnglish.setIsCaseSensitive(true); entities = wiktionaryEnglish.getEntity("mine"); for (Entity e : entities) { System.out.println(e); System.out.println(wiktionaryEnglish.getGloss(e)); caseSensitiveGloss += wiktionaryEnglish.getGloss(e); } assertTrue(caseSensitiveGloss.equals(caseInSensitiveGloss)); }