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

  • SEARCH
  • Home
  • 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 7512585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:54:28+00:00 2026-05-29T23:54:28+00:00

how can extract all the words that start with a particular letter from wordnet.

  • 0

how can extract all the words that start with a particular letter from wordnet. Example if i type A the wordnet should return all the words that start with letter A.

  • 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-29T23:54:31+00:00Added an answer on May 29, 2026 at 11:54 pm

    Easiest way I can see is to download their database from here and then parse the space separated data files (data.adj,data.adv,data.noun,data.verb) for the 5th element in each line and place them into a relevant data structure.

    Possibly a Hash table with starting letter as key and each element as an array of words that start with that letter.

    Whether you use dynamic arrays or regular arrays and you then first parse of the file to get the number of words of each letter (array size) is up to you.

    The following code sample is written in C, and reads through a wordnet datafile and prints the word in question. It is by no means polished and was quickly made.

    #include <stdio.h>
    #include <string.h>
    int main(int argc,char**argv)
    {
      FILE *fp;
    
      fp=fopen("data.noun", "r");
      char line [ 3000 ];
      while ( fgets ( line, sizeof line, fp ) != NULL )
      {
          char *result = NULL;
          int count =0;
          result = (char*)strtok( line, " ");
          count++; 
          while( result != NULL ) 
          {
          if (count == 5) 
          {
              printf( "result is \"%s\"\n", result );
          }
          result = (char*)strtok( NULL, " ");
          count++;
          }
      }
      return 0;
    }
    

    For further documentation on the WordNet database format see here

    If you wanted to use the WordNet C API instead then see the findtheinfo function documented here, though I don’t think it is designed to return the sort of information you want using that API call.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I extract all words in a string that start with the $
I'm looking for a parser that can extract methods from a java class (static
I'm trying to extract all words from a string into an array, but i
The Cassandra command-line utility sstablekeys can be used to extract all defined row keys
We can extract the mimetype from byte array, e.g., by using Apache Tika. Is
Is there any way by which i can extract a private key from a
To have a general-purpose documentation system that can extract inline documentation of multiple languages,
I have some path c:\server\folderName1\another name\something\another folder\ . How i can extract from there
How can we extract a line from a multiLine EditText ? I tried this
How can I extract 456 from xxx_456 where xxx is of indefinite length?

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.