F
F
firstpasha2015-01-09 19:35:22
JavaScript
firstpasha, 2015-01-09 19:35:22

Is there a service or library for making sentences from words?

Hello! Playing with technology, I was interested in such a question.
There are lists of Russian words: nouns, adjectives, verbs.
The task is to randomly select words from one or another list and make up a sentence from them in which all words will be correctly coordinated.
Have you met similar services, libraries or algorithms?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Martynov, 2015-01-10
@smart

It all depends on what end problem you want to solve.
Of course, there are such algorithms and libraries - ranging from primitive entertainment: martynov.info/textgen (just composes pieces of phrases in random order - see the code in the source code of the page), to the most complex scientific works www.siggen.org (this is the site of a group of computer linguists) .
If you want to delve into the topic of NLG (natural language generation), you should start with generation algorithms based on Markov chains (a good explanation of the basics - www.manhunter.ru/webmaster/358_generator_teksta_na... and Bayesian networks.
If you are going to dive deep into this topic, you can't do without KPML - www.fb10.uni-bremen.de/anglistik/langpro/kpml/READ...
www.nlg-wiki.org/systems - here is a large list of different systems for NLG. In particular, some kind of (seemingly abandoned) "Dushka" system was found - https://code.google.com/p/mindforth/wiki/RussMan
Returning to the original question about the js-library - js itself is not deeply involved in generation I tried, but I found these things:
https://github.com/NaturalNode/natural - a library (rather low-level) for working with natural language (Russian support is declared)
rednoise.org/rita - a library for working with natural language with a decent database words, synonyms, etc. (only English)

F
frees2, 2015-01-10
@frees2

I advise you to pay attention to the dictionaries of tropes, Brodsky and so on.
This is an almost ready-made solution, no worse than special databases

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question