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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:23:35+00:00 2026-06-06T14:23:35+00:00

I want to make a text scanner for similar words in PHP, but I

  • 0

I want to make a text scanner for similar words in PHP, but I do not know where to begin. The scanner will have to scan a paragraph and point out matches that are found in a Database or propose specific words that will assist in making this paragraph better.

I thought at first that I could use a database and a search engine script but I have been told that this is not the way to do it.

Can someone please point me to the right direction so I can start working on 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-06-06T14:23:38+00:00Added an answer on June 6, 2026 at 2:23 pm

    I just post another answer because my first one was wrong after the OP comment and it had too many comments.

    First you need to extrapolate every single word from your paragraph, using for example:

    $words_array = explode(" ", $paragraph);
    

    Then you need to remove special characters, slashes, points, commas etc. (maybe using str_replace()).

    In the second step you need to build a Database of synonyms like this:

    | id | word | synonyms |
    | 0  | car  | vehicle  |
    | 1  | car  | transport |
    

    Then do something like (for each word of your paragraph):

    SELECT synonyms FROM table WHERE word="car"
    

    And after this you can fetch the results.

    But this is only the start. You NEED to optimize this method. Example: you can do that when you search vehicle it returns car. The same for transport. That’s up to you!

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

Sidebar

Related Questions

i want to make a text box like stackoverflow have for the tag at
I want to make a downloading uilabel whose label text will change dynamically when
i want to make autocomplete for many text input field... but with this autocomplete
I want to make all text links at my website have a bottom border.
I want to make a website, but all I know is basic HTML and
I have this code which is ok $row->main_auto_make_make But I want to make something
I have a NSOutlineView and I want to make the text for a row
We want to make text-align:justify, to take all the width of the column, but
I have a div which contains two lines but i want to make them
I want to make the text inside the EditText converted to float anyone know

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.