Answer the question
In order to leave comments, you need to log in
A library that will help you understand that "answers" and "OTBETs" are the same thing?
Hello.
I need to make it clear to the program that, for example, "drunk" = "@[email protected]".
Need it to fight ads. I have already come up with an algorithm, but I need to write a lot of letter aliases.
Perhaps someone has already done this before me and there is a ready-made lib for recognizing this so as not to reinvent the wheel, do not tell me?)
Answer the question
In order to leave comments, you need to log in
This algorithm is over 100 years old: https://ru.wikipedia.org/wiki/Soundex
"the same" and "the same" are not the same.
My ancient article on this topic
https://m.habr.com/en/post/86303/
Aliases will not help to solve this problem. There are millions of ways to write the word drunk:
al-kash (from the point of view of the Russian language, everything is normal, it sounds like a name from some Warcraft)
alkash
alkash
a.l.k.a.sh
a1lkash (here, in general, the letter "l" from two characters consists, so what aliases can be?)
I have already come up with an algorithm, but I need to write a lot of letter aliases.
Perhaps someone has already done this before me and there is a ready-made lib for recognizing this so as not to reinvent the wheel, do not tell me?)
conv["t"] = "т"
conv["@"] = "а"
func MyConv(symbol string) string {
s:= LowerCase(symbol)
if v, ok:= conv[s] {
return v
} else {
return s
}
}
in the general case, the library does not solve it
through Google)) and you invent here
, but the three-way method works - usually from the other side it’s the same noob
Aliases will not help to solve this problem. There are millions of ways to write a word...
There is such an option, but it is probably too powerful for you:
https://tech.yandex.ru/speller/
Here is an interesting article about the transformation of words:
https://habr.com/ru/post/270845/
Maybe it will suit you "The function of evaluating the similarity of a pair of words"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question