N
N
Nadim Zakirov2020-05-22 12:10:27
PHP
Nadim Zakirov, 2020-05-22 12:10:27

How to break together written phrases into separate words?

There was a need to disassemble a hodgepodge like this:

#костюмтеплый
#весеннийкостюм
#костюмвязаный
#костюмспортивный

Are there ready-made morphological JS/PHP libraries that could extract individual words from hashtags?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Otrivin, 2020-05-22
@zkrvndm

Yandex has a speller. There are classes on github to work with it.
Try it might help

X
xmoonlight, 2020-05-22
@xmoonlight

Wiktionary has frequency digrams.
We invert the list and get bigrams-unbelievable things.
1. We check the words on them (on the substring of the digram) and break in the middle.
2. After the break - check the resulting words in the dictionary.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question