Answer the question
In order to leave comments, you need to log in
Does anyone know a phrase generator with the ability to set the generation algorithm?
Hello gentlemen. I would be very grateful if someone could tell me a phrase generator in which you can set generation algorithms.
If a little more. For example, we have a list of words divided into categories:
buy----------pink----elephant
purchase----red----hippo
rent----green---- - parrot
At the same time, we do not have a green elephant, as well as the opportunity to rent a parrot.
Accordingly, we introduce into the program these lists of keys and an elimination algorithm, in which the keys "green" and "elephant", as well as "rent" and "parrot" will not be placed in the final list of combinations. at the same time, we can also set the algorithm for "jumping" over the column, that is, the output will be combinations:
-buy a pink hippopotamus
-buy a pink parrot
-buy a red elephant
and so on
as well as:
-buy an elephant
-buy a parrot
Of course, the free condition in this case is optional.
Yandex and Google, with a relatively diligent search, showed that they don’t know anything about this topic, they give out stupid online generators of funny slogans and so on, or simple generators that combine keys according to the “all for all” algorithm. So, we can say that the question is from the Hard Mode category.
Answer the question
In order to leave comments, you need to log in
Either or a dictionary of defining and changing word forms is taken and run:
Morph. analyzers/programs: here
Good afternoon,
If you want to do exactly what you wrote, then this is a fairly trivial algorithm. any programmer will write it in a few hours.
But we need to formalize the statement of the problem a bit.
There are 3 (maybe more) sets of words A, B, C of different lengths and there is an array I - exceptions.
It is necessary to create an array of all combinations of elements from arrays A, B, C that are not in the exceptions.
The only difficulty may be in Russian plural endings, both masculine neuter and feminine... but these are also solvable problems. Get in touch if needed :)
Doesn't there still exist an online generator or program with the conditions for outputting phrases?! like in the picture for example:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question