Gets senses.

@param surfaceForm the surface form
@param pos         the part of speech tag
@param language    the language
@return the senses
161091
public List<Sense> getSenses(@NonNull String surfaceForm, @NonNull POS pos, @NonNull Language language) {
        return getSenses(new SenseEnum(-1, pos.getUniversalTag(), language),
                         Lemmatizers
                             .getLemmatizer(language)
                             .allPossibleLemmas(surfaceForm, pos));
    }
12712
public static Locale locale(String language) {
        if (language.contains("_")) {
            String[] sa = language.split("_");
            if (sa.length > 2) {
                return new Locale(sa[0], sa[1], sa[2]);
            } else if (sa.length > 1) {
                return new Locale(sa[0], sa[1]);
            } else {
                return new Locale(sa[0]);
            }
        }
        return new Locale(language);
    }
281073
def pos(self):
		'''  '''

		tags = []
		if self.tree.xpath('//div[@id="mw-content-text"]//a[@title="Hilfe:Wortart"]/text()'):
			info = self.tree.xpath('//div[@id="mw-content-text"]//a[@title="Hilfe:Wortart"]/text()')[0]
			if info == 'Substantiv':
				tags.append('NN')
			if info == 'Verb':
				tags.append('VB')
			if info == 'Adjektiv':
				tags.append('JJ')
		return tags
526712
def pos_tags(self):
        
        return [(Word(word, pos_tag=t), unicode(t))
                for word, t in self.pos_tagger.tag(self.raw)
                # new keyword PatternTagger(include_punc=False)
                # if not PUNCTUATION_REGEX.match(unicode(t))
                ]
1091397
def _get_text_pos(self, charno, lineno):
        
        return self._get_char_x(charno), self._get_line_y(lineno)
603252
public Optional<Sense> getSense(@NonNull String word, @NonNull POS pos, int senseNum, @NonNull Language language) {
        for (String lemma : Lemmatizers
                                .getLemmatizer(language)
                                .allPossibleLemmas(word, pos)) {
            for (Sense sense : db.getSenses(lemma.toLowerCase())) {
                if ((pos == POS.ANY || pos.isInstance(
                    sense.getPOS())) && sense.getSenseNumber() == senseNum && sense.getLanguage() == language) {
                    return Optional.of(sense);
                }
            }
        }
        return Optional.empty();
    }
613461
private String getPart(int pos) {
    String value = this.getValue();
    if (value == null) {
      return null;
    }
    String[] parts = value.split("/");
    return parts.length >= pos + 1 ? parts[pos] : null;
  }
1307168
def pos_tag(args):
  """"""
  tagger = POSTagger(lang=args.lang)
  tag(tagger, args)
975082
protected List<ExecutableScript> initEnvForLanguage(String language) {

    List<ExecutableScript> scripts = new ArrayList<ExecutableScript>();
    for (ScriptEnvResolver resolver : envResolvers) {
      String[] resolvedScripts = resolver.resolve(language);
      if(resolvedScripts != null) {
        for (String resolvedScript : resolvedScripts) {
          scripts.add(scriptFactory.createScriptFromSource(language, resolvedScript));
        }
      }
    }

    return scripts;
  }
1179796
protected static String getPartialEndedWord(String str, int pos){
		assert(pos < str.length() && pos >= 0);

		if(	posIsAtWord(str, pos) ){
			int prevSpace = findLastNonLetterOrDigit(str, pos);

			return str.substring(prevSpace+1, pos+1);
		}
		return null;
	}
131608
public String getPOS() {
    if (WordForm_Type.featOkTst && ((WordForm_Type)jcasType).casFeat_POS == null)
      jcasType.jcas.throwFeatMissing("POS", "com.digitalpebble.rasp.WordForm");
    return jcasType.ll_cas.ll_getStringValue(addr, ((WordForm_Type)jcasType).casFeatCode_POS);}
8079
def _get_languages(cls) -> set:
        """"""
        if not cls._server_is_alive():
            cls._start_server_on_free_port()
        url = urllib.parse.urljoin(cls._url, 'Languages')
        languages = set()
        for e in cls._get_root(url, num_tries=1):
            languages.add(e.get('abbr'))
            languages.add(e.get('abbrWithVariant'))
        return languages
1236855
private TermType getCommonDenominator(LanguageTag otherLanguageTag) {
        return langTag.getCommonDenominator(otherLanguageTag)
                .map(newLangTag -> newLangTag.equals(langTag)
                        ? (TermType) this
                        : new LangDatatype(newLangTag, parentAncestry, typeFactory))
                // Incompatible lang tags --> common denominator is xsd:string
                .orElseGet(typeFactory::getXsdStringDatatype);
    }
1073520
private function getBaseForm(Word $word, $pos) {
    $lemmas = [];
    if($lemma = $pos->getIrregularBase($word)) {
      $lemmas[] = $lemma;
    }

    return array_merge($lemmas, $pos->getRegularBases($word));
  }
1373922
@Nullable
  private String getPastTenseVerbSuggestion(String word) {
    if (word.endsWith("e")) {
      // strip trailing "e"
      String wordStem = word.substring(0, word.length()-1);
      try {
        String lemma = baseForThirdPersonSingularVerb(wordStem);
        if (lemma != null) {
          AnalyzedToken token = new AnalyzedToken(lemma, null, lemma);
          String[] forms = synthesizer.synthesize(token, "VER:3:SIN:PRT:.*", true);
          if (forms.length > 0) {
            return forms[0];
          }
        }
      } catch (IOException e) {
        throw new RuntimeException(e);
      }
    }
    return null;
  }
806571
@Nullable
  public static Language getLanguageForName(String languageName) {
    for (Language element : getStaticAndDynamicLanguages()) {
      if (languageName.equals(element.getName())) {
        return element;
      }
    }
    return null;
  }
322479
public T withDescription(String text, String languageCode) {
		withDescription(factory.getMonolingualTextValue(text, languageCode));
		return getThis();
	}