Link to home
Start Free TrialLog in
Avatar of dict
dict

asked on

GENERATING PAIR OF WORDS

Dear Friends,


This question I address for Pascal or Delphi programmers.

I would need your help to build a script which will generate a set of pair of all words found in a File putting the list/results of pair of words in another File.

For example:

Source
<FileA>This title will become a featured solution after answer




Results:
<FileB>
This title
title will
will become
become a
a featured
featured solution
solution after
after answer



Hesitate not in contact me for further details.

The points may be increased!

Thank you in advance.


dict
Avatar of Mike McCracken
Mike McCracken

Do you mean as written or in your example is This will a good pair?

mlmcc
ASKER CERTIFIED SOLUTION
Avatar of MrT-RSI
MrT-RSI

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dict

ASKER

Yes, more or less in this way.

dict.
Avatar of dict

ASKER

Dear MrT-RSI,

I Tested your program in Delphi 5 and BP 7.0

There are two problems in BP.

It not show the last word, for example:

´ I will go to cinema´

 it divides in this way:

I will
will go
go to

So, it shown not the word "cinema"

I added other feature for your program, reading the text from files, then it omit the first and the last word from each line:

For example

I will go to cinema

it shown:

will go
go to

It shown not ´I´ and ´cinema´
 
Please, I would need your helpful to do works fine this program!

Thank you.

dict.
come on - be creative !
Seeing as this is probably homework maybe we should let him solve his own problem

mlmcc
my idea !