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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:02:18+00:00 2026-06-01T16:02:18+00:00

Ideally using regex, in python. I’m making a simple chatbot, and it’s currently having

  • 0

Ideally using regex, in python. I’m making a simple chatbot, and it’s currently having problems responding to phrases like “I love you” correctly (it’ll throw back “You love I” out of the grammar handler, when it should be giving back “You love me”).

In addition, I’d like it if you could think of good phrases to throw into this grammar handler, that’d be great. I’d love some testing data.

If there’s a good list of transitive verbs out there (something like a “top 100 used”) it may be acceptable to use that and special case the “transitive verb + you” pattern.

  • 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-01T16:02:20+00:00Added an answer on June 1, 2026 at 4:02 pm

    What you want is a syntactic analyser (aka parser)- this can be done by a rule-based system as described by @Dr.Kameleon, or statistically. There are many implementations out there, one being the Stanford one. These will generally tell you what the syntactic role of a word is (e.g. subject “You are here”, or object “She like you”). How you use that information to turn statements into questions is a whole different can of worms. For English, you can get a fairly simple rule-based system to work OK.

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

Sidebar

Related Questions

I've been experimenting with making a simple Python web crawler, and I'm using regular
I want to make an FTP connection (ideally using Coldfusion 8, but Java is
When using Visual Studio (though ideally this can apply to the generic case) and
Is it possible to draw a road using bing maps js api? Ideally I
Whats the best way to zip up files using C#? Ideally I want to
Ideally I'd like a way to enable the mouse wheel for scrolling in old
Ideally I'd like to be able to create the views in Interface Builder and
Ideally, I'd like a module or library that doesn't require superuser access to install;
Ideally I want a function something like the following (this example doesn't compile): void
Using regex. trying to get only the last x digits of the number and

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.