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

Dialogue attribution and adverbs re: #106 #1080

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Serene-Arc
Copy link

I implemented the rule from Steven King about adverbs in dialogue atribution, as described in issue #106

It's a fairly simple regex string that finds a piece of dialogue and checks to see if there is an adverb in the following phrase. I think it's fairly fragile but it's worked on the example texts that I've tested it with.

This is my first pull request and my first time contributing to a project that isn't my own so any help would be appreciated :)

@Nytelife26
Copy link
Member

@Serene-Arc I know this was a while ago, but are you still willing to work on it? Let me know.
Thanks for your submission either way.

@Nytelife26 Nytelife26 added cat: new-rule Issues and PRs related to new proselint rules. priority: null Issues and PRs that are of negligible importance so may be postponed. status: postponed Issues and PRs that are being temporarily set aside in favour of others. type: feat Issues and PRs related to new features. version: minor Issues and PRs with new features belonging to the next minor release. labels May 29, 2021
@Serene-Arc
Copy link
Author

@Nytelife26 Hi! I am still willing to work on it :) This is a great tool

@Nytelife26 Nytelife26 added status: wip Issues and PRs that are still a work in progress. and removed status: postponed Issues and PRs that are being temporarily set aside in favour of others. labels May 30, 2021
@Nytelife26
Copy link
Member

Nytelife26 commented May 30, 2021 via email

@Serene-Arc
Copy link
Author

Sure, I'll get to it as soon as I can

@Serene-Arc Serene-Arc force-pushed the dialogue-attribution branch from ef23c33 to 47a872b Compare May 30, 2021 22:22
@codecov
Copy link

codecov bot commented May 31, 2021

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.72%. Comparing base (ae2161b) to head (bc183cd).
Report is 88 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1080      +/-   ##
==========================================
+ Coverage   90.19%   93.72%   +3.53%     
==========================================
  Files          83       84       +1     
  Lines        1203     1275      +72     
==========================================
+ Hits         1085     1195     +110     
+ Misses        118       80      -38     
Flag Coverage Δ
macos-latest 93.72% <100.00%> (+3.53%) ⬆️
py3.6 93.13% <100.00%> (+3.91%) ⬆️
py3.7 93.13% <100.00%> (+3.91%) ⬆️
py3.8 93.72% <100.00%> (+3.53%) ⬆️
py3.9 93.72% <100.00%> (+3.53%) ⬆️
pypypy3 93.13% <100.00%> (+3.91%) ⬆️
ubuntu-latest 93.72% <100.00%> (+3.53%) ⬆️
windows-latest 93.72% <100.00%> (+3.53%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Nytelife26 Nytelife26 self-requested a review July 4, 2021 15:52
@Nytelife26
Copy link
Member

I went ahead and applied those suggested changes for you, @Serene-Arc. Any chance you could create tests for this new check at some point, and perhaps rewrite the file docstrings to be more descriptive like in other checks?

@Serene-Arc
Copy link
Author

@Nytelife26 Ah, thanks! I'd already applied the suggested changes but I'll overwrite them with these. I've got some tests written, just been busy with some other stuff sorry, so I'll get them done soon and bring in the docstrings to be in line with the rest of the project.

@Nytelife26
Copy link
Member

Nytelife26 commented Jul 5, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat: new-rule Issues and PRs related to new proselint rules. priority: null Issues and PRs that are of negligible importance so may be postponed. status: wip Issues and PRs that are still a work in progress. type: feat Issues and PRs related to new features. version: minor Issues and PRs with new features belonging to the next minor release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants