Skip to content

Incorrect Sentence Handling and Feature Addition for Word Count Calculation for handling sentences. #34

Description

@abhyuday1212

Describe the bug & addition of feature

  • Code is not handling the sentences correctly, it should give the same output same as for the default case of "No hate speech" but it showing a wrong Output.
  • This is happening because the code is made to count multiple of 7 including blank spaces and not individual words.
  • Adding a feature to handle a sentence with max 7 words in it. By calculating length of each word in the sentence and dynamically arranging the "+ , -" operator to calculate if any how the solution can be equal to 7 or not.

Error Image

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Search Input and type any sentence having blank spaces'
  2. See error

Expected behavior
The code should count for 7 or multiple of 7 for a single word but it is doing same for sentence input, handling the Behavior of sentence is important.

**Additional Addition **
Adding a feature to handle a sentence with max 7 words in it. By calculating length of each word in the sentence and dynamically arranging the "+ , -" operator to calculate if any how the solution can be equal to 7 or not.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions