Test whether a sentence is in the imperative mood
See original GitHub issueI wasn’t aware of this library. It look awesome!
I was looking for a string predicate which can help me test if a given string is a valid sentence in the imperative mood. e.g.:
isImperative('Clean your room')
should betrue
isImperative('Cleaned your room')
should befalse
isImperative('Close the door')
should betrue
isImperative('Closing the door')
should befalse
isImperative('Take out the trash')
should betrue
isImperative('Sweet new trash')
should befalse
Is there any way I can achieve this with the current tools compromise
offers? If not, then this is a feature request 😃
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Imperative Mood: Explanation and Examples
The imperative mood is the verb form used to make a command or a request (e.g., 'Leave me here,' 'Read your poem,' 'Get...
Read more >Imperative Mood Explained: 8 Examples of the ... - Masterclass
The imperative mood is a mood in English grammar that inflects a direct command or a strong request. Commanding statements like "take out ......
Read more >nlp - Approach for identifying whether a sentence includes an ...
Here's what I've come up with by reading up on the grammar of imperatives, learning about chunking and some experimentation. (Python + NLTK)...
Read more >Imperative Mood Explanation and Examples
Pop Quiz. Identify any instances of the use of the imperative mood in the following sentences. 1. Slow down! If you were a...
Read more >Imperative Mood: Definition & Example - StudySmarter
An imperative is a sentence that gives a command. Imperative sentences are written in the imperative mood. Final Imperative Mood Quiz.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
.verbs().isImperative()
is released as13.10.1
cheersWow, mate! Thanks for the fast response and reaction! You really made my day 🚀