PHP - Find specific-word duplicates in lines and display lines with duplicates


I need this script done immediately. I already have parts of the script complete, I just need someone to finish it for me.

Here is what the script does:

I enter a list of "lines" (sentences) into a textbox.

The script scans the lines, looks for duplicate words THAT I SPECIFY, and then displays only the lines that have duplicate words.

The script knows to check both singular and plural versions of the word, as both are considered duplicates (I have this part complete). The script knows to check for both capitalized and lowercase words.

For example, if I insert the following lines:

I played a great game of slots the other day and won at slots.

Slots are a lot of fun but can you win?

The slot game was great, but I prefer slots instead.

Slot games are great, and slots are even better.

Why should you play slots?

The script would output:

I played a great game of slots the other day and won at slots.

The slot game was great, but I prefer slots instead.

Slot games are great, and slots are even better.

As these lines include "slot" and "slots" duplicates. Again, the script should check for capitalization.

I've attached what I've done on the script so far. The script and the class for checking for plural words. The current version detects duplicates, makes the words plural and also checks there... The problem is I can't make it ONLY check for a word I specify. It's outputting all lines that contain duplicates of any word.

Hopefully it will only take an experience coder an hour to finish this script, I'm so close to making it work.

I need to this script to be finished ASAP, as in tonight in the next few hours. Thanks!

Kemahiran: PHP

Lihat lebih lanjut: php find word occurence, php find word frequency, php script read word file html display, php find word special character, php find word mysql text, php find color change color, programming find repeated word sentence file, find unique word text, php find myspace, php mysql html table display, php search submitting separate display page, php countdown specific date, php find bottlenecks, display duplicates removed excel, script php find frame

Tentang Majikan:
( 4 ulasan ) Tampa, United States

ID Projek: #14863343

Dianugerahkan kepada:


Hi! I'm interesting your project very well. i mastering PHP and HTML. And also I have many experience and good skill about web and android development. Let's go ahead with me Stay tuned, I'm still working on this pr Lagi

$55 USD dalam sehari
(77 Ulasan)

7 pekerja bebas membida secara purata $37 untuk pekerjaan ini


Hi, I am ready to start it. But i have some questions for you. So kindly leave message for me, then ill discuss it in depth. Relevant Skills and Experience Graphic Design, HTML, PHP, Website Design Proposed Milestone Lagi

$50 USD dalam sehari
(114 Ulasan)

Hello! How are you? I have many works like this. You can see my profile or see the links I have wrote above this. I can show you my works and talk about everything. My priority is get good reviews, so we want good rel Lagi

$55 USD dalam sehari
(11 Ulasan)
$25 USD dalam sehari
(29 Ulasan)
$25 USD dalam sehari
(6 Ulasan)
$25 USD dalam sehari
(4 Ulasan)

ISS is a global provider of software, solutions, and services focused on deploying business-driven, technology-enabled solutions that create next-generation competitive advantages for customers. Relevant Skills and Ex Lagi

$25 USD dalam sehari
(0 Ulasan)