Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abhyuday1212 opened this issue Jan 10, 2024 · 1 comment
Assignees

Comments

@abhyuday1212
Copy link

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.

@abhyuday1212
Copy link
Author

Hey @subh05sus , the project is not only about bug removal but also about the feature addition of handling sentences formed by 7 words. The 7 letter sentence itself has #"128 cases" to handle the operators and check for the end result by explicitly checking every time. So can you please consider it in the medium level tag.

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

No branches or pull requests

2 participants