|
Learning with Texts - Fork 2.4.0-fork
Learn foreign languages with texts
|
PHP Utility Functions to calculate similar terms of a term. More...
Namespaces | |
| namespace | Lwt |
Functions | |
| letterPairs ($str) | |
| wordLetterPairs ($str) | |
| getSimilarityRanking ($str1, $str2) | |
| get_similar_terms ( $lang_id, $compared_term, $max_count, $min_ranking) | |
| print_similar_terms ($lang_id, $compared_term) | |
| print_similar_terms_tabrow () | |
PHP Utility Functions to calculate similar terms of a term.
| get_similar_terms | ( | $lang_id, | |
| $compared_term, | |||
| $max_count, | |||
| $min_ranking | |||
| ) |
For a language $lang_id and a term $compared_term (UTF-8). If string is already in database, it will be excluded in results.
@psalm-return array<positive-int, string>
| getSimilarityRanking | ( | $str1, | |
| $str2 | |||
| ) |
Similarity ranking of two UTF-8 strings $str1 and $str2
| letterPairs | ( | $str | ) |
@psalm-return array<0|positive-int, string>
| print_similar_terms | ( | $lang_id, | |
| $compared_term | |||
| ) |
Get Term and translation of terms in termid array (calculated in function get_similar_terms(...)) as string for echo
| wordLetterPairs | ( | $str | ) |
@psalm-return list<mixed>