Learning alternative text machine

We have a txt file with text. 
Composed by lines in the txt file. 
Each line is a phrase. 
Under each line I want to put a new line composed by a replacement criteria. (or
in a new txt file...)

The scritp would like to have two modes : 
- learning mode
- automatic replacement mode

We need a "database" with the rules for the replacements. 

We analyze each line (phrase) in the original txt file. 

When we find in the txt file a sub-phrase with a corresponding replacement in
our "database" we propose the replacement. 

The above example is our first algorithm. 

the second algorith is a delete criteria. When we found a word or a subphrase
decide if delete or not. 

Can I have this script or you know a program to do this and more ?


Best Regards

-- 
Nice program indeed

<http://forum.pspad.com/read.php?2,62650,62650>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem