Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 611065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:44:36+00:00 2026-05-13T17:44:36+00:00

Start with this: [G|C] * [T] * Write a program that generates this: Cat

  • 0

Start with this:

[G|C] * [T] *

Write a program that generates this:

Cat
Cut
Cute
City <-- NOTE: this one is wrong, because City has an "ESS" sound at the start.
Caught
...
Gate
Gotti
Gut
...
Kit
Kite
Kate
Kata
Katie

Another Example, This:

[C] * [T] * [N]

Should produce this:

Cotton
Kitten

Where should I start my research as I figure out how to write a program/script that does this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:44:36+00:00Added an answer on May 13, 2026 at 5:44 pm

    You can do this by using regular expressions against a dictionary containing phonetic versions of words.

    Here’s an example in Javascript:

         <html>
        <head>
            <title>Test</title>
            <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
            <script>
    
                $.get('cmudict0.3',function (data) {
                    matches = data.match(/^(\S*)\s+K.*\sT.*\sN$/mg);
                    $('body').html('<p>'+matches.join('<br/> ')+'</p>');
                })
    
            </script>
        </head>
        <body>
        </body>
    </html>
    

    You’ll need to download the list of all words from http://icon.shef.ac.uk/Moby/mpron.tar.Z and put it (uncompressed) in the same folder as the HTML file. I’ve only translated the [C] * [T] * [N] version into a regular expression and the output isn’t very nice but it’ll give you the idea. Here’s a sample of the output:

    CALTON K AE1 L T AH0 N
    CAMPTON K AE1 M P T AH0 N
    CANTEEN K AE0 N T IY1 N
    CANTIN K AA0 N T IY1 N
    CANTLIN K AE1 N T L IH0 N
    CANTLON K AE1 N T L AH0 N
    ...
    COTTERMAN K AA1 T ER0 M AH0 N
    COTTMAN K AA1 T M AH0 N
    COTTON K AA1 T AH0 N
    COTTON(2) K AO1 T AH0 N
    COULSTON K AW1 L S T AH0 N
    COUNTDOWN K AW1 N T D AW2 N
    ..
    KITSON K IH1 T S AH0 N
    KITTELSON K IH1 T IH0 L S AH0 N
    KITTEN K IH1 T AH0 N
    KITTERMAN K IH1 T ER0 M AH0 N
    KITTLESON K IH1 T L IH0 S AH0 N
    ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write a program that will play MP3's. This program will also
I am trying to write a program that uses a timer, duration, start time
I wanted to write a program that converts a decimal in to binary. For
I'm trying to write a program that will read from a flat file of
I have to write a program that is required to run several other programs
I'm attempting to write a program that downloads Team Viewer and installs it and
I am attempting to write a program that utilizes a ComboBox to display currently
I am trying to write a program that scans the surround WiFi networks and
I'm attempting to write a program that will generate a text file with every
I am trying to write a program that supports speech recognition via a custom

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.