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

feat: forms of "get rid off" -> "rid of" #685

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

hippietrail
Copy link
Contributor

All inflected forms: get/gets/getting/got rid off

I can't think of any false positives.

There's a case for handling just "rid off" → "rid of" but there may be a higher chance of false positives there, and I'm not sure if it occurs very much without "get". Let me know.

Random examples from Github for testing:

Please bump axios version to get rid off npm warning # 624

Get rid off "Missing" count in table1 · Issue # 21

31 Mar 2024 — ... getting rid off of all the complexity of the different accesses method of API service providers. From the API service provider, it will get ...

22 Apr 2016 — For now we got rid off circular deps in model tree structure and it's API. The question is whether I should work more to make this graph ...

29 Jan 2016 — papped commented on Jan 30, 2016. Adding at as a runtime dependency gets rid off that error, but now it comes back with the error: java.lang ...

examples from github:
- This is my last project (Automattic#12), library-monotasking operative system for the Hack machine written in the Jack language. Support bugs and requests.
- COS is a operative system made with the COSMOS Kernel and written in C#, COS its literally the same than MS-DOS but written in C# and open-source.
@hippietrail hippietrail marked this pull request as ready for review February 16, 2025 16:40
@elijah-potter
Copy link
Collaborator

A lot of these changes would be better implemented as macro calls in phrase_corrections.rs.

elijah-potter added a commit that referenced this pull request Feb 17, 2025
@hippietrail hippietrail marked this pull request as draft February 18, 2025 07:03
@hippietrail
Copy link
Contributor Author

hippietrail commented Feb 18, 2025

A lot of these changes would be better implemented as macro calls in phrase_corrections.rs.

I'll turn this one into a draft while I have a go at moving these over...

Is this what you're looking for?
Note that it offers more suggestions per error now.

Maybe we need a new macro that can handle inflected forms?

I don't see another example that handles inflected forms or other kinds of variants to copy.

I'll wait for feedback on this one before proceding with converting the others.
hippietrail added a commit to hippietrail/harper that referenced this pull request Feb 19, 2025
Previous implementation was in Automattic#685 along with other lints in `matcher.rs` now in `phrase_corrections.rs`
hippietrail added a commit to hippietrail/harper that referenced this pull request Feb 19, 2025
…orrections.rs`

Previously part of PR Automattic#685 mixed with other changes all in `matcher.rs`
hippietrail added a commit to hippietrail/harper that referenced this pull request Feb 19, 2025
Moved from `matcher.rs` to `phrase_corrections.rs`. Was previously part of PR Automattic#685 with other lints.
hippietrail added a commit to hippietrail/harper that referenced this pull request Feb 26, 2025
…orrections.rs`

Previously part of PR Automattic#685 mixed with other changes all in `matcher.rs`
@hippietrail
Copy link
Contributor Author

A lot of these changes would be better implemented as macro calls in phrase_corrections.rs.

I'll turn this one into a draft while I have a go at moving these over...

This whole thing still confuses me. I won't be putting multiple features into a single PR again, even if they seem to be of the same type. Atomic is much more manageable if anything goes slightly wrong.

This is the current status of each part, as best I can tell:

  • far/way to many/much - stuck in limbo - I think I messed up git when you contributed to my branch on my fork and couldn't figure out how to extricate myself
  • rid off - looks like it has been merged but without "gotten rid off", which looks like my fault for not converting when I converted the other inflected forms - I'll make a new PR to add just that one.
  • operative system - looks like it has been merged.
  • yea/yah→yeah - looks like I never converted it. But it's not a phrase correction anyway so not sure the best way to do it?
  • Did I miss anything?

@elijah-potter If you can push/merge in your version of "far/way to many/much" and I submit "gotten rid off" - then let me know if anything else is still outstanding, and then we can get rid of this old broken PR.

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.

2 participants