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
Collaborator

@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
Collaborator

Nytelife26 commented May 30, 2021 via email

@Serene-Arc
Copy link
Author

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

@codecov
Copy link

codecov bot commented May 31, 2021

Codecov Report

Merging #1080 (bc183cd) into main (ae2161b) will increase coverage by 3.53%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            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.

Impacted Files Coverage Δ
proselint/checks/redundancy/adverb_dialogue.py 100.00% <100.00%> (ø)
proselint/checks/lexical_illusions/misc.py 100.00% <0.00%> (ø)
proselint/tools.py 84.92% <0.00%> (+7.35%) ⬆️
proselint/command_line.py 71.15% <0.00%> (+26.92%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ae2161b...bc183cd. Read the comment docs.

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

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
Collaborator

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.

None yet

2 participants