Expand description
§harper-core
This is the core engine behind Harper.
Right now, it only exists to hold the core functioning of harper-ls
and harper-wasm
(and by extension the web interface).
harper-core
is available on crates.io
, however improving the API is currently not a high priority.
Feel free to use harper-core
in your projects, but if you run into issues, create a pull request.
§Features
concurrent
: Whether to use thread-safe primitives (Arc
vs Rc
). Disabled by default.
It is not recommended unless you need thread-safely (i.e. you want to use something like tokio
).
Modules§
Structs§
- A document containing some amount of lexed and parsed English text.
- A full, fat dictionary. All elements are stored in-memory.
- A single-threaded reference-counting pointer. ‘Rc’ stands for ‘Reference Counted’.
- Identifies portions of a
char
sequence that should not be ignored by Harper. - A simple wrapper over
Dictionary
that allows one to merge multiple dictionaries without copying. - A window in a
char
sequence.
Enums§
Traits§
- A Masker is a tool that can be composed to eliminate chunks of text from being parsed. They can be composed to do things like isolate comments from a programming language or disable linting for languages that have been determined to not be English.
Functions§
- A utility function that removes overlapping lints in a vector, keeping the more important ones.
Type Aliases§
- A char sequence that improves cache locality. Most English words are fewer than 12 characters.