question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test whether a sentence is in the imperative mood

See original GitHub issue

I 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 be true
  • isImperative('Cleaned your room') should be false
  • isImperative('Close the door') should be true
  • 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:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
spencermountaincommented, Mar 4, 2021

.verbs().isImperative() is released as 13.10.1 cheers

0reactions
SRachamimcommented, Mar 8, 2021

Wow, mate! Thanks for the fast response and reaction! You really made my day 🚀

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found