Skip to content

Conversation

elijah-potter
Copy link
Collaborator

Description

Introduces a new rule that detects missing nouns when they're implied by a determiner.

How Has This Been Tested?

Additional unit tests.

Checklist

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

@elijah-potter elijah-potter changed the title alskda feat(core): create new rule for detecting missing nouns Sep 26, 2025
impl Default for DeterminerWithoutNoun {
fn default() -> Self {
let expr = SequenceExpr::default()
.then(|tok: &Token, _: &[char]| tok.kind.is_determiner())
Copy link
Collaborator

Choose a reason for hiding this comment

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

You'll want to weed out determiners that are also pronouns, especially "this" and "that".
I can't remember if "my" etc. are marked as determiners. They should be and I think they are. If so a couple of those are also pronouns, I think "her" and "its" off the top of my head. .kind_is_but_is_not() might suffice to address this.

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

Successfully merging this pull request may close these issues.

2 participants