Skip to content

Improve Multiattack parsing#39

Merged
Stendarpaval merged 1 commit into
Stendarpaval:mainfrom
Merudo:main
Sep 23, 2021
Merged

Improve Multiattack parsing#39
Stendarpaval merged 1 commit into
Stendarpaval:mainfrom
Merudo:main

Conversation

@Merudo

@Merudo Merudo commented Sep 20, 2021

Copy link
Copy Markdown
Contributor

- Remove all HTML tags before parsing
- Replace ` ` by space
- Remove trailing whitespaces
- Close Stendarpaval#38

@Stendarpaval Stendarpaval left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A nice, clean method of removing the influence of unexpected and/or unwanted HTML tags from interfering with multiattack parsing.

However, I prefer keeping lines 21 through 23 in, since they not only remove the trailing paragraph tag, but also the period at the end of the sentence. I vaguely remember that that period also causes issues with parsing multiattacks correctly, hence its removal.

So until I have time to further refactor the parsing algorithm, I prefer leaving that in. I'll probably merge your commit and then re-add these lines in the next commit.

@Stendarpaval
Stendarpaval merged commit 52822b1 into Stendarpaval:main Sep 23, 2021
@Merudo

Merudo commented Sep 23, 2021

Copy link
Copy Markdown
Contributor Author

Awesome!

PR #41 adds back the removal of the last period, sorry for changing it.

@Stendarpaval

Copy link
Copy Markdown
Owner

No worries! As you can read in my reply in PR #41, it's already taken care of. Thanks for helping me improve Mob Attack Tool :)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiattack parsing improvement: better recognition for "The X makes three attacks: one with its bite and two with its claws"

2 participants