Welcome to our forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Forum Statistics

  • Forum Members:
  • Total Threads:
  • Total Posts: 12
There are 1 users currently browsing forums.
General Programming Here you can talk about scripting in other languages such as Perl, Delphi, Pascal and Python.

Reply
  #1  
Old 01-31-2010
Toddler
 
Join Date: Jan 2010
Posts: 8
Rep Power: 0
melly_d is on a distinguished road
Straightforward Program Help

Hello,

I had an idea for a program but I know very little so I would like some help.

Basically I want a program that will take a piece of text and translate it. I am trying to fix the English language so that words are spelled the way they are pronounced and I would like a program that translates words into my spelling style. What would be the best way to go about this?

Thanks,

Mel
Reply With Quote
  #2  
Old 02-01-2010
Moderator
 
Join Date: Dec 2005
Posts: 1,862
Rep Power: 6
Umang is on a distinguished road
Re: Straightforward Program Help

That's an interesting idea. However, I do not believe that there is any simple way to solve this problem, for the following reasons:

1. You are expecting a computer to know how to pronounce each word in the dictionary. You will have to compile a database of 'phonetic spelling' of each word and have your program query the database to find the phonetic spelling. If you have any such database in mind, explain and then we might be able to suggest what options you have.

2. If you don't have a database, then you're going to have a hard time compiling one, even if you restrict the database to a limited vocabulary. If you look at any dictionary, you will see that the pronunciations given are not strictly in English letters. See here: dictionary - Wiktionary The pronunciation have been given as /ˈdɪkʃən(ə)ɹi/. This of course is an attempt to give all possible sounds a symbol. Since English is not phonetic, you cannot spell water as wotar, woter or wohta. Also, sounds like the o of 'snore' is different from the the o for 'from'. There is not alternative letter.

If you have already thought this out, then you should explain. Otherwise it would be hard for anyone to give any suggestions.

Umang
Reply With Quote
  #3  
Old 02-01-2010
Toddler
 
Join Date: Jan 2010
Posts: 8
Rep Power: 0
melly_d is on a distinguished road
Re: Straightforward Program Help

I see what you mean, it would be hard to train the computer to look for a particular sound. How about this, I make a dictionary with my new phonetic versions of english words and the original english word linked to each other somehow. I will start with the 1000 most commonly used words and expand from there. Could I then make a program that takes a piece of normal english text and goes to my database to find its counterpart and then translates it into the phonetic version that is right next to it in the database?

If you are curious about how I plan to do the phonetic versions, I will post what I have so far. This is still very rough, so feel free to take a look and see if it can be improved in any way!

PLAAN INXGLISH! (Plain English)

PROPOSAL: To make English words spelled the way they sound.

WHY? Because the way English is spelled now doesn't make sense, it's confusing, and it's harder to learn than it could be. Some people have trouble learning how to read because of how English is written - there are people who never learn for this reason!

RULES: -No new symbols, only normal letters.
-Each letter starts with only one basic sound.
-New sounds are made by adding special action letters.


Letters and pronunciations: Here are the new way the letters will be used and a few examples. A lone English word means the letter is used as normal in that situation.

A - cat, fake=faak, weight=waat, etc.
B - but
C - vowel action letter, changes sound of vowel that comes before it, air=acr, white=wict
D - dud
E - pen, ski=skee
F - fat, graph=graf
G - go, NOT gee
H - hello
I - win, wine=wiin
J - jump, fudge=fuj
K - tuck=tuk, much=mukx (see x)
L - lid, well=wel
M - mom, damn=dam
N - no, knee=nee, ring=rinx (see x)
O - tone=toon, own=oon, out=oct
P - put, NOT graph
Q - new vowel! wood=wqd, pull=pql
R - rat
S - step, shut=sxut (see x)
T - top, the=txe
U - but, boot=buut
V - vat
W - wet
X - consonant action letter, changes the sound of the consonant that came before it, much=mukx, shut=sxut, the=txe, ring=rinx
Y - yes, cute=kyuut
Z - zit, is=iz

SAMPLE TEXT: Ookaa! Let'z taak it oct foor a test spin! Uu maa bee sqrpriizd hoc eezee it iz tuu lqrn tuu reed txis kiind uv rictinx! Moost peepql oonlee taak a fyuu sekindz!

Soo, txis iz mii baasik iideeu. Enee advics?

Melee Dee
Reply With Quote
  #4  
Old 4 Weeks Ago
Toddler
 
Join Date: Jan 2010
Posts: 8
Rep Power: 0
melly_d is on a distinguished road
Re: Straightforward Program Help

Sorry, I was a bit unclear about my needs. What I would do is make two lists, one of common english words, and another of their corresponding phonetic version. Then I would have a program that takes a piece of english text, and translates each word to its phonetic versions. New words not yet in the lists would be added to a third list for later translation.

I can do the phonetic part myself, but I am not sure how to do the program. Can anyone offer any advice?
Reply With Quote
  #5  
Old 4 Weeks Ago
Moderator
 
Join Date: Dec 2005
Posts: 1,862
Rep Power: 6
Umang is on a distinguished road
Re: Straightforward Program Help

What language are you going to do this in and are you familiar with databases?
Reply With Quote
  #6  
Old 4 Weeks Ago
Toddler
 
Join Date: Jan 2010
Posts: 8
Rep Power: 0
melly_d is on a distinguished road
Re: Straightforward Program Help

I am not sure what language I should do it in. I am open to suggestion I will say though that I have started to teach myself Python, if that would do the trick.
I know a little bit about what databases are. I have fooled around with Access for a few minutes, just to see how it works.
Reply With Quote
  #7  
Old 4 Weeks Ago
Moderator
 
Join Date: Dec 2005
Posts: 1,862
Rep Power: 6
Umang is on a distinguished road
Re: Straightforward Program Help

Try learning some SQL commands first (try them on MS Access if that's more convenient). I've used sqlite in the past, but I suggest that you look through DatabaseInterfaces - PythonInfo Wiki to choose. Since you are only learning at the moment, I'd suggest to complete learning the basics and then see what you can do after that. We're always there to help.
Reply With Quote
  #8  
Old 4 Weeks Ago
Toddler
 
Join Date: Feb 2010
Posts: 11
Rep Power: 0
asbo is on a distinguished road
Re: Straightforward Program Help

try using "perl"
its original purpose was this sort of thing, make it read the file as arrays of characters, then iterate through them createing a new string from it which has your version.
e.g

Code:
read line
set line to array
iterate array
     replace each character from your look-up-table (pre-defined array)
then print the string built up from loop into the final string "output"
if not all lines read then go to start, else, output string "output" in the form you require.
pm me for any help with perl
Reply With Quote
  #9  
Old 4 Weeks Ago
Toddler
 
Join Date: Jan 2010
Posts: 8
Rep Power: 0
melly_d is on a distinguished road
Re: Straightforward Program Help

Really? That's code?? Looks like English to me! I will check Perl out, thanks!
Reply With Quote
  #10  
Old 4 Weeks Ago
Toddler
 
Join Date: Jan 2010
Posts: 8
Rep Power: 0
melly_d is on a distinguished road
Re: Straightforward Program Help

I did a quick search and the Perl website says that Perl is included in Mac OS X, which I am currently running. The website says to open up the command line...anyone mind telling me where the command line is? I know...I'm a nube
Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTB Software Announces Reseller Program for its Best Selling Scripts hostthebest News and Discussion 0 08-10-2008 06:04 PM
chess program pops C and C++ Programming 2 08-29-2007 05:24 PM
C++ or C better program ChrisBrown C and C++ Programming 0 08-28-2007 09:47 AM
ip/DNS program mr.disco C and C++ Programming 2 12-27-2005 12:46 PM
what does this mean --> cc++/Socket.h??? AsianCutie C and C++ Programming 15 06-27-2005 12:47 AM