Answer the question
In order to leave comments, you need to log in
Different actions in one window of the site - is it possible?
Hello. Initial data - a site with text input in the field (site in ruby). Is it possible to make it so that each word / each paragraph / each sentence (depending on what is the "separator") has its own action applied or the same action, but as if separately? Simply put, it is necessary that there are "tacit" separators inside a single text input field, and it is they that regulate the actions with each individual "section" of the text.
Something like this - if the separator within the general text is a dot, then the text is split into sentences. It is necessary to make sure that by a common command (pressing the "start" button, for example), the entire text is divided into sentences and a typical action is performed with each of them, but with a slightly different result. As an example (well, roughly speaking) - each sentence must be saved in a separate file and each file must be automatically named with a different name from other files (random name either in turn like A, B, C, or whatever).
And now the questions. Is it possible to do this in principle? Is it possible to do this specifically in Ruby? If not in ruby, then where is it easier? How difficult is this task? What is an adequate salary for such work, plus or minus? How many hours plus minus does it take?
Well, if possible - describe what generally needs to be done to solve this problem? This is similar to the situation - I arrived in an unfamiliar city without a navigator and have to rely on the opinion of a taxi driver, how long is the journey and what is the real price for the route. An adequate honest taxi driver can say "it's two blocks from here, 10 minutes on foot if you go yourself, the price is 250 rubles." And the other will take you through the whole city and back through traffic jams and nooks and crannies, tearing off 1800 rubles. This is not about a taxi, but the essence is obvious, I think)
Do not throw stones if the question is obvious, I have never written codes in my life, I am generally far from all this, but it took me and therefore I decided to get your opinion)
Answer the question
In order to leave comments, you need to log in
Is it possible to do this in principle?
"Слоны идут на север. И иногда на юг. Одновременно".split(".").each do |item|
# Вершим неизбежное!
end
params
if it arrives from the user from the page.Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question