Skip to content

feat: take sth. serious→take sth. seriously #1405

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

Merged
merged 1 commit into from
Jun 18, 2025

Conversation

hippietrail
Copy link
Collaborator

Issues

N/A

Description

  • Replaces TakeItSeriously in phrase_corrections.rs with a more capable linter.

  • Now matches all forms of the verb take and arbitrary nominal phrases.

  • This has uncovered some limitations in NominalPhrase, especially that this and that are not recognized as pronouns (and hence nominal phrases) because they are recognized as determiners (that would introduce longer nominal phrases).

  • Adverbs between the NP and serious are not yet handled.

  • Passive mood is not supported. ie. "be taken serious" with no NP between take and serious.

How Has This Been Tested?

A range of sentences using this pattern were found on GitHub and converted to tests.

Checklist

  • I have performed a self-review of my own code
  • I have added tests to cover my changes

@hippietrail hippietrail added grammar An issue related to higher-level grammar checking linting labels Jun 18, 2025
@elijah-potter elijah-potter reopened this Jun 18, 2025
@elijah-potter elijah-potter enabled auto-merge June 18, 2025 14:19
@elijah-potter elijah-potter added this pull request to the merge queue Jun 18, 2025
Merged via the queue into Automattic:master with commit c05f534 Jun 18, 2025
46 checks passed
@hippietrail hippietrail deleted the take-something-serious branch June 18, 2025 15:17
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Jun 24, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [Automattic/harper/harper-ls](https://github.com/Automattic/harper) | minor | `v0.42.0` -> `v0.44.0` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>Automattic/harper (Automattic/harper/harper-ls)</summary>

### [`v0.44.0`](https://github.com/Automattic/harper/releases/tag/v0.44.0)

[Compare Source](Automattic/harper@v0.43.0...v0.44.0)

#### What's Changed

- feat: split affixes and properties and support propagating properties by [@&#8203;RunDevelopment](https://github.com/RunDevelopment) in Automattic/harper#1251
- fix: missing words in [#&#8203;1401](Automattic/harper#1401) by [@&#8203;hippietrail](https://github.com/hippietrail) in Automattic/harper#1402
- fix: ensure grey is suggested when gray is wrong by [@&#8203;hippietrail](https://github.com/hippietrail) in Automattic/harper#1403
- feat: take sth. serious→take sth. seriously by [@&#8203;hippietrail](https://github.com/hippietrail) in Automattic/harper#1405
- feat(core): add linter for [#&#8203;346](Automattic/harper#346) by [@&#8203;elijah-potter](https://github.com/elijah-potter) in Automattic/harper#1407
- feat(web): show Firefox link to applicable users by [@&#8203;elijah-potter](https://github.com/elijah-potter) in Automattic/harper#1409
- feat(chrome-plugin): set up build system for Firefox by [@&#8203;elijah-potter](https://github.com/elijah-potter) in Automattic/harper#1408
- feat:Shoot oneself into a leg → oneself in the foot by [@&#8203;hippietrail](https://github.com/hippietrail) in Automattic/harper#1391
- chore: re-sort phrase corrections by [@&#8203;hippietrail](https://github.com/hippietrail) in Automattic/harper#1410
- docs: add page for Firefox + update FAQ by [@&#8203;elijah-potter](https://github.com/elijah-potter) in Automattic/harper#1412
- feat(core): cover case from [#&#8203;381](Automattic/harper#381) + remove useless rule by [@&#8203;elijah-potter](https://github.com/elijah-potter) in Automattic/harper#1416
- feat: add types of determiner by [@&#8203;hippietrail](https://github.com/hippietrail) in Automattic/harper#1415
- Major performance improvements to the Chrome extension by [@&#8203;elijah-potter](https://github.com/elijah-potter) in Automattic/harper#1417
- feat: handle the recieved→received part of [#&#8203;1411](Automattic/harper#1411) by [@&#8203;hippietrail](https://github.com/hippietrail) in Automattic/harper#1418
- fix(chrome-ext): dispatch input events on form els by [@&#8203;elijah-potter](https://github.com/elijah-potter) in Automattic/harper#1330
- fix(core): use POS tags for `PronounKnew` accuracy by [@&#8203;elijah-potter](https://github.com/elijah-potter) in Automattic/harper#1413
- feat: Implement [#&#8203;405](Automattic/harper#405) - the "5am in the morning" redundancy by [@&#8203;hippietrail](https://github.com/hippietrail) in Automattic/harper#1414
- feat: add "except if" and "except when" for "unless if" by [@&#8203;hippietrail](https://github.com/hippietrail) in Automattic/harper#1318
- feat: touristic → tourist / tourism / touristic by [@&#8203;hippietrail](https://github.com/hippietrail) in Automattic/harper#1345
- fix: some very important adverbs were not marked by [@&#8203;hippietrail](https://github.com/hippietrail) in Automattic/harper#1420

**Full Changelog**: Automattic/harper@v0.43.0...v0.44.0

### [`v0.43.0`](https://github.com/Automattic/harper/releases/tag/v0.43.0)

[Compare Source](Automattic/harper@v0.42.0...v0.43.0)

#### What's Changed

- refactor(core): `Pattern` -> `Expr` by [@&#8203;elijah-potter](https://github.com/elijah-potter) in Automattic/harper#1393
- feat: fix nonstandard variants of two idioms by [@&#8203;hippietrail](https://github.com/hippietrail) in Automattic/harper#1392
- feat: update untitled handling by [@&#8203;mcecode](https://github.com/mcecode) in Automattic/harper#1385
- build(deps): bump clap from 4.5.39 to 4.5.40 by [@&#8203;dependabot](https://github.com/dependabot) in Automattic/harper#1397
- build(deps): bump reqwest from 0.12.19 to 0.12.20 by [@&#8203;dependabot](https://github.com/dependabot) in Automattic/harper#1396
- chore: sort alphabetically by [@&#8203;hippietrail](https://github.com/hippietrail) in Automattic/harper#1399
- build(deps): bump unicode-width from 0.2.0 to 0.2.1 by [@&#8203;dependabot](https://github.com/dependabot) in Automattic/harper#1398
- feat(brill): train and use Brill tagger by [@&#8203;elijah-potter](https://github.com/elijah-potter) in Automattic/harper#1344

**Full Changelog**: Automattic/harper@v0.42.0...v0.43.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC41Ny4xIiwidXBkYXRlZEluVmVyIjoiNDAuNjIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90Il19-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grammar An issue related to higher-level grammar checking linting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants