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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.