0

Hi everybody!
I'm trying to write a program that is able to look inside a txt file and change, for example, the first word with a similar word. The txt file will have one word for line.

EXAMPLE:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

ORIGINAL TXT FILE:

tom
lives

CHANGED TXT FILE:

mum
lives

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

I need to build a database of words with a similar sound, of course (mum, tom, son, sean, john...)
and I think i'll have to use python's regex, but i actually have no idea about how to implement it...
any suggestion? I'm very new in programming and I think my problem is not so difficult, but i don't know where to start from... *_*
Thanks!

h.

4
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by Miyuki
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.