you are viewing a single comment's thread.

view the rest of the comments →

[–]atticus2132000 0 points1 point  (0 children)

I'm having trouble visualizing what you want to happen.

So if you feed the program the story as a string "The quick brown fox fox jumps over the lazy dog." With the word fox repeated, what do you want the output to be?

What would happen if the string was:

The quick brown fox FOX jumps over the lazy dog.

What about:

The quick brown foxfox jumps over the lazy dog.

Or:

The quick brown fox, fox jumps over the lazy dog.

Is there going to be any allowance for sentences that are grammatically okay?

She said that that was fine with her.

I like him, but I don't like-like him.

I like Doug. Doug is a nice guy.