Displaying Phonetics of any Name in CICS



Post anything related to mainframes (IBM & UNISYS) if not fit in any of the above categories

Displaying Phonetics of any Name in CICS

Postby saurabhgupta86 » Tue Aug 14, 2012 6:44 pm

Hi,

How to display phonetics of any name in CICS.

e.g., robert should be displayed as 'rɑbərt'.

Peter should be displayed as 'pitər'.
saurabhgupta86
 
Posts: 13
Joined: Tue Aug 14, 2012 6:35 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Displaying Phonetics of any Name in CICS

 

Re: Displaying Phonetics of any Name in CICS

Postby dick scherrer » Tue Aug 14, 2012 7:07 pm

Hello and welcdome to the forum,

Your question is not actually related to CICS.

Suggest you look into "Soundex".
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Displaying Phonetics of any Name in CICS

Postby saurabhgupta86 » Wed Aug 15, 2012 11:00 am

Hi Dick,

I tried with "Soundex" function, it works when the phonetics of the word/name are also saved in DB2 table.

e.g. If i want to use Soundex FUNCTION to find the phonetic sound for name "ROBERT" , i need to save "RAHbert" also in the table and use query like this:

SELECT NAME FROM EMPLOYEE
WHERE SOUNDEX(NAME) = SOUNDEX('ROBERT');

My requiremnt is if i just give the name, i should get the phonetic sound of the name automatically, i need not save the sound in table.

Please suggest on this.

Thanks & Regards
Saurabh Gupta
saurabhgupta86
 
Posts: 13
Joined: Tue Aug 14, 2012 6:35 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Displaying Phonetics of any Name in CICS

Postby Akatsukami » Wed Aug 15, 2012 3:07 pm

  1. You'll need a reference table of some sort because of the irregularity of English orthography.
  2. Unless you're limiting your phonetic function to RSE (Received Standard English), its complexity jumps by an order or two of magnitude. I lived for a few decades in the lower Connecticut River valley -- the "Tobacco Valley" -- and have a noticeable Tobacco Valley accent...one feature of which is that I replace intervocalic dentals with glottals. Is your function going to tell you that my cat's name is pronounced "KAY-tee" or "KAY-ee"?
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1053
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Displaying Phonetics of any Name in CICS

Postby saurabhgupta86 » Wed Aug 15, 2012 4:21 pm

Hi Akatsukami,

Thanks for the reply.

I want to limit my function to Received Standard English. Is there some standard reference table which contains the phonetic sounds which i can use in my program. So that, i need not enter the phonetic representation of each and every value i enter in to the table.

The exact requirement is - On CICS screen i have NAME field, if somebody enters some name there, Say "Peter", 'pitər' should be displayed as phonetic sound represenatation in the phonetic sound representation field.

Please advice.

Thanks & Regards,
Saurabh Gupta
saurabhgupta86
 
Posts: 13
Joined: Tue Aug 14, 2012 6:35 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Displaying Phonetics of any Name in CICS

Postby Akatsukami » Wed Aug 15, 2012 5:06 pm

I recommend that you Google "phonetic database". Note that the usual warnings about downloading and installing unauthorized software on your employer's equipment apply.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1053
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Displaying Phonetics of any Name in CICS

Postby enrico-sorichetti » Wed Aug 15, 2012 5:19 pm

unless I am blatantly wrong we are talking about different things around here :geek:

the <SOUNDEX> algorithm... given a <character string> will encode it to a four bytes string
so that misspelled words will with a certain degree of confidence encoded to the same <token>
for example the SOUNDEX
A500 will <match> ann, anne, anna, amy , amee , ...

seems that on the other side You are looking for the
Phonetic transcription (or phonetic notation), AKA visual representation of speech sounds
so that when somebody looks at an english word will know how to pronounce it
see for example
http://dictionary.cambridge.org/help/phonetics.html

if this is so, no algorithm will help
and... remember the phonetic convetion is not unique, there are at least a couple ( IIRC )
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2643
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: Displaying Phonetics of any Name in CICS

Postby saurabhgupta86 » Wed Aug 15, 2012 5:26 pm

Hi Akatsukami,

As we are not allowed to install unauthorized softwares here.

We have to devise something which will help in this. I am thinking, if we can use SOUNDEX algorithm to devise something.

Thanks & Regards
Saurabh Gupta
saurabhgupta86
 
Posts: 13
Joined: Tue Aug 14, 2012 6:35 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Displaying Phonetics of any Name in CICS

Postby saurabhgupta86 » Wed Aug 15, 2012 5:38 pm

Hi Enrico,

Thanks for the reply.

I am talking only about a person's name here.

The requirement is, i have a NAME field on CICS screen, say EMPLOYEE name, i have to add a new field PHONETIC REPRESENTATION for the field.
So that the person who is looking at the EMPLOYEE records, should be able to see - How to pronounce the employee's name.

Please advice.

Thanks & Regards
Saurabh Gupta
saurabhgupta86
 
Posts: 13
Joined: Tue Aug 14, 2012 6:35 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Displaying Phonetics of any Name in CICS

Postby enrico-sorichetti » Wed Aug 15, 2012 7:01 pm

whatever <word> You are talking about, the Phonetic representation <todo> do not change full stop

reread and try to understand my previous reply :geek:

Please advice.


very little advice can be given ...
build/buy a dictionary with the proper phonetic representations

needs very strong linguistic skill to build one
needs a <terminal> capable to display the appropriate <compound>/<phonetics> special chars

not a problem that can be solved using forum replies
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2643
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Next

Return to All other Mainframe Topics

 


  • Related topics
    Replies
    Views
    Last post