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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:20:30+00:00 2026-06-17T18:20:30+00:00

I am writing an auto-wikifier tool using HTML and JavaScript. For each word in

  • 0

I am writing an “auto-wikifier” tool using HTML and JavaScript. For each word in the text to be wikified, I need to obtain a list of pages that contain that word (so that the matching phrases in the text can be automatically wikified, if they are found). Is there a way to obtain a list of all Wikipedia pages that contain a specific word, using one of Wikipedia’s APIs or web services?

function getMatchingPageTitles(theString){
    //get a list of all matching page titles for a specific string, using one of Wikipedia's APIs or web services
}
  • 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-06-17T18:20:31+00:00Added an answer on June 17, 2026 at 6:20 pm

    First, I’m not sure I understand how would something like that be useful. (Wikipedia has articles for all the common words and I don’t think links to them would be of any use.)

    But if you really wanted to do something like this, I think a much better way would be to use the API to find out which words from your input text have articles.

    For example, for the string I am writing an "auto-wikifier" tool, your query could look something like:

    http://en.wikipedia.org/w/api.php?format=xml&action=query&titles=I|am|writing|an|auto-wikifier|tool

    And the answer is:

    <api>
      <query>
        <normalized>
          <n from="am" to="Am" />
          <n from="writing" to="Writing" />
          <n from="an" to="An" />
          <n from="auto-wikifier" to="Auto-wikifier" />
          <n from="tool" to="Tool" />
        </normalized>
        <pages>
          <page ns="0" title="Auto-wikifier" missing="" />
          <page pageid="2513432" ns="0" title="Am" />
          <page pageid="2513422" ns="0" title="An" />
          <page pageid="25346998" ns="0" title="I" />
          <page pageid="30677" ns="0" title="Tool" />
          <page pageid="32977" ns="0" title="Writing" />
        </pages>
      </query>
    </api>
    

    Few notes:

    • The results are not in the order you specified them.
    • If a page doesn’t exist, the result has missing="" attribute.
    • JSON and JSONP formats are available too, that might be more suitable for JavaScript.
    • The titles parameter has a limit of 50 per one query.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing an update statement where I need to update a list of
I've found myself writing some repetitious code in C++. I'm using some auto-generated, such
I'm writing a computer program using Java (JDBC) and I'm having trouble getting auto-incremented
I'm writing an auto testing framework using Selenium. I am trying to test our
Background: I am writing a Java app which auto generates a HTML table. As
i am currently writing a script mod for Grand Theft Auto IV using Scripthook
When writing a javascript function in Eclipse, I would like to use the auto-commenting
I'm writing a little text mode application using curses on Linux. For keyboard input
I am writing a script in Python using Selenium that auto fills out a
For some reason auto complete no longer works. for example when writing code using

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.