Skip to content

Commit

Permalink
Выпилил метод listAllWordforms: его легко запилить самостоятельно, а …
Browse files Browse the repository at this point in the history
…нужен не всем
  • Loading branch information
demidko committed Nov 27, 2022
1 parent c069ea0 commit aa711b8
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/main/java/com/github/demidko/aot/WordformMeaning.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,10 @@ public class WordformMeaning {
/**
* @return всевозможные "сырые" слова, известные библиотеке
*/
public static List<String> getAllFlexions() {
public static List<String> listAllFlexions() {
return asList(allFlexionStrings);
}

/**
* Метод обходит словарь библиотеки
*
* @return все возможные словоформы
*/
public static List<WordformMeaning> listAllWordforms() {
List<WordformMeaning> allWordforms = new ArrayList<>();
for (String flexion : allFlexionStrings) {
allWordforms.addAll(lookupForMeanings(flexion));
}
return allWordforms;
}

/**
* @param lemmaId Идентификатор леммы
* @param transformationIndex Индекс трансформации леммы
Expand Down

0 comments on commit aa711b8

Please sign in to comment.