Automattic / Automattic/harper

Harper thinks a `typst` function call is a sentence

Open
#1,171 4 comments 2 reactions 0 assignees View on GitHub
bug harper-core linting typst
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 15h
Merged PRs (30d)
102

Description

## Description

I don't know if this counts as a false positive or a bug so please correct me.

I use Typst and Harper for my thesis, which leads to me having the following in a Typst-file. The excerpt begins on line 1 (see provided screenshot). On `thesis.with(`, on line 3, Harper declares `thesis.typ|3 col 8 note| This sentence is 84 words long` though I'd call it a function call with separate strings that should count as separate sentences.

Is it only flagging a non-error or is a spurious fix also suggested?

Harper is not suggesting any fixes.

## Screenshots

If applicable, add screenshots to help explain the false positive.

![Image](https://github.com/user-attachments/assets/cb8b2fd0-01aa-46e9-8f02-ab15fce8128a)

Contributor guide

Open the contributing guide

Research direction

Reproduce the report using the thesis.typ example, focusing on line 3, column 8 where Harper reports an 84-word sentence for thesis.with(. Compare that diagnostic with the separate strings described in the issue and determine the intended behavior for this function-call context. Done means the false positive is resolved or the behavior is clearly explained.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.