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 1039375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:05:31+00:00 2026-05-16T15:05:31+00:00

Stack Overflow implemented its Related Questions feature by taking the title of the current

  • 0

Stack Overflow implemented its “Related Questions” feature by taking the title of the current question being asked and removing from it the 10,000 most common English words according to Google. The remaining words are then submitted as a fulltext search to find related questions.

How do I get such a list of the most common English words? Or most common words in other languages? Is this something I can just get off the Google website?

  • 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-16T15:05:31+00:00Added an answer on May 16, 2026 at 3:05 pm

    A word frequency list is what you want. You can also make your own, or customize one for use within a particular domain, and it is a nice way to become familiar with some good libraries. Start with some text such as discussed in this question, then try out some variants of this back-of-the-envelope script:

    from nltk.stem.porter import PorterStemmer
    import os
    import string
    from collections import defaultdict
    
    ps = PorterStemmer()
    word_count = defaultdict(int)
    
    source_directory = '/some/dir/full/of/text'
    
    for root, dirs, files in os.walk(source_directory):
        for item in files:
            current_text = os.path.join(root, item)
            words = open(current_text, 'r').read().split()
            for word in words:
                entry = ps.stem_word(word.strip(string.punctuation).lower())
                word_count[entry] += 1
    
    results = [[word_count[i], i] for i in word_count]
    
    print sorted(results)
    

    This gives the following on a couple of books downloaded, re the most common words:

    [2955, 'that'], [4201, 'in'], [4658, 'to'], [4689, 'a'], [6441, 'and'], [6705, 'of'], [14508, 'the']]
    

    See what happens when you filter out the most common x y or z number from your queries, or leave them out of your text search index entirely. Also might get some interesting results if you include real world data — for example “community” “wiki” is not likely a common word on a generic list, but on SO that obviously wouldn’t be the case and you might want to exclude them.

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

Sidebar

Related Questions

How can I implement a diff function, such as Stack Overflow's question revision history?
This question relates closely to the stack overflow question " window.resize event firing in
this is my first question on stack overflow but I have some experience in
I'm trying to implement a tab menu just like the one in Stack Overflow.
I am writing a hotel booking system. after lots of studying (including stack overflow)
this is my first stack overflow, and it's a complex one. Sorry. My task
I have seen similar questions on here but haven't found an answer. I'm taking
After hearing the latest Stack Overflow podcast, Peter Norvig's compact Python spell-checker intrigued me,
I'm trying to implement voting very similar to Stack Overflow's. There are multiple items
If you have used Stack Overflow for a while, you surely have used the

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.