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

Imekamilika Ilichapishwa Miaka 6 iliyopita Kulipwa wakati wa kujifungua
Imekamilika Kulipwa wakati wa kujifungua

Hello,

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!

PHP

Kitambulisho cha Mradi: #14863343

Kuhusu mradi

7 mapendekezo Mradi wa mbali Ipo mtandaoni %project.latestActivity_relativeTime|badilisha%

Imetuzwa kwa:

liangjongai

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 Zaidi

$55 USD kwa siku 1
(Maoni 77)
5.6

7 wafanyakazi huru wanazabuni wastani wa $37 kwa kazi hii

ZnDevelopers

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 Zaidi

$50 USD kwa siku 1
(Maoni 114)
6.4
Goiss

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 Zaidi

$25 USD kwa siku 1
(Maoni 0)
0.0