We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b43f73 commit 79ed7e8Copy full SHA for 79ed7e8
src/lib.rs
@@ -384,9 +384,13 @@ const AT_COMPOUND_BEGIN: AffixingMode = 1;
384
const AT_COMPOUND_MIDDLE: AffixingMode = 2;
385
const AT_COMPOUND_END: AffixingMode = 3;
386
387
+/// The maximum allowed length of a word in bytes.
388
+///
389
+/// Above this length the checker will always return `false` and the suggester will always return
390
+/// an empty output.
391
// Nuspell limits the length of the input word:
392
// <https://github.com/nuspell/nuspell/blob/349e0d6bc68b776af035ca3ff664a7fc55d69387/src/nuspell/dictionary.cxx#L156>
-const MAX_WORD_LEN: usize = 360;
393
+pub const MAX_WORD_LEN: usize = 360;
394
395
/// The casing of a word.
396
// Hunspell: <https://github.com/hunspell/hunspell/blob/8f9bb2957bfd74ca153fad96083a54488b518ca5/src/hunspell/csutil.hxx#L91-L96>
0 commit comments