cspell-trie-lib 7.0.2 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/dist/index.js +1 -0
  2. package/dist/lib/Builder/BuilderCursor.js +1 -0
  3. package/dist/lib/Builder/TrieBuilder.js +1 -0
  4. package/dist/lib/Builder/cursor-util.js +1 -0
  5. package/dist/lib/Builder/index.js +1 -0
  6. package/dist/lib/ITrie.js +1 -0
  7. package/dist/lib/ITrieNode/CompoundModes.js +1 -0
  8. package/dist/lib/ITrieNode/FindOptions.js +1 -0
  9. package/dist/lib/ITrieNode/ITrieNode.js +1 -0
  10. package/dist/lib/ITrieNode/TrieInfo.js +1 -0
  11. package/dist/lib/ITrieNode/find.js +1 -0
  12. package/dist/lib/ITrieNode/index.js +1 -0
  13. package/dist/lib/ITrieNode/trie-util.js +1 -0
  14. package/dist/lib/ITrieNode/walker/hintedWalker.js +1 -0
  15. package/dist/lib/ITrieNode/walker/index.js +1 -0
  16. package/dist/lib/ITrieNode/walker/walker.js +1 -0
  17. package/dist/lib/ITrieNode/walker/walkerTypes.js +1 -0
  18. package/dist/lib/SimpleDictionaryParser.js +1 -0
  19. package/dist/lib/TrieBlob/FastTrieBlob.js +1 -0
  20. package/dist/lib/TrieBlob/FastTrieBlobBitMaskInfo.js +1 -0
  21. package/dist/lib/TrieBlob/FastTrieBlobBuilder.js +1 -0
  22. package/dist/lib/TrieBlob/FastTrieBlobIRoot.js +1 -0
  23. package/dist/lib/TrieBlob/FastTrieBlobInternals.js +1 -0
  24. package/dist/lib/TrieBlob/TrieBlob.js +1 -0
  25. package/dist/lib/TrieBlob/TrieBlobIRoot.js +1 -0
  26. package/dist/lib/TrieBlob/createTrieBlob.js +1 -0
  27. package/dist/lib/TrieBlob/index.js +1 -0
  28. package/dist/lib/TrieBlob/resolveMap.js +1 -0
  29. package/dist/lib/TrieBuilder.js +1 -0
  30. package/dist/lib/TrieCursor/TrieCursor.js +1 -0
  31. package/dist/lib/TrieCursor/index.js +1 -0
  32. package/dist/lib/TrieData.js +1 -0
  33. package/dist/lib/TrieNode/TrieNode.js +1 -0
  34. package/dist/lib/TrieNode/TrieNodeBuilder.js +1 -0
  35. package/dist/lib/TrieNode/TrieNodeTrie.js +1 -0
  36. package/dist/lib/TrieNode/compoundWalker.js +1 -0
  37. package/dist/lib/TrieNode/find.js +1 -0
  38. package/dist/lib/TrieNode/trie-util.js +1 -0
  39. package/dist/lib/TrieNode/trie.js +1 -0
  40. package/dist/lib/buildITrie.js +1 -0
  41. package/dist/lib/consolidate.js +1 -0
  42. package/dist/lib/constants.js +1 -0
  43. package/dist/lib/convertToTrieRefNodes.js +1 -0
  44. package/dist/lib/decodeTrie.js +1 -0
  45. package/dist/lib/distance/distance.js +1 -0
  46. package/dist/lib/distance/distanceAStar.js +1 -0
  47. package/dist/lib/distance/distanceAStarWeighted.js +1 -0
  48. package/dist/lib/distance/formatResultEx.js +1 -0
  49. package/dist/lib/distance/index.js +1 -0
  50. package/dist/lib/distance/levenshtein.js +1 -0
  51. package/dist/lib/distance/weightedMaps.js +1 -0
  52. package/dist/lib/flatten.js +1 -0
  53. package/dist/lib/index.js +1 -0
  54. package/dist/lib/io/constants.js +1 -0
  55. package/dist/lib/io/decode.js +1 -0
  56. package/dist/lib/io/importExport.js +1 -0
  57. package/dist/lib/io/importExportV1.js +1 -0
  58. package/dist/lib/io/importExportV2.js +1 -0
  59. package/dist/lib/io/importExportV3.js +1 -0
  60. package/dist/lib/io/importExportV4.js +1 -0
  61. package/dist/lib/io/importV3.js +1 -0
  62. package/dist/lib/io/importV3FastBlob.js +1 -0
  63. package/dist/lib/io/index.js +1 -0
  64. package/dist/lib/mappers/joinLetters.js +1 -0
  65. package/dist/lib/mappers/mapCosts.js +1 -0
  66. package/dist/lib/mappers/mapDictionaryInfo.js +1 -0
  67. package/dist/lib/mappers/mapDictionaryInfoToWeightMap.js +1 -0
  68. package/dist/lib/mappers/mapHunspellInformation.js +1 -0
  69. package/dist/lib/mappers/mapToSuggestionCostDef.js +1 -0
  70. package/dist/lib/models/DictionaryInformation.js +1 -0
  71. package/dist/lib/models/locale/index.js +1 -0
  72. package/dist/lib/models/locale/knownLocales.js +1 -0
  73. package/dist/lib/models/locale/locale.js +1 -0
  74. package/dist/lib/models/suggestionCostsDef.js +1 -0
  75. package/dist/lib/suggest.js +1 -0
  76. package/dist/lib/suggestCollector.js +1 -0
  77. package/dist/lib/suggestions/SuggestionTypes.js +1 -0
  78. package/dist/lib/suggestions/collectSuggestions.js +1 -0
  79. package/dist/lib/suggestions/constants.js +1 -0
  80. package/dist/lib/suggestions/genSuggestionsOptions.js +1 -0
  81. package/dist/lib/suggestions/orthography.js +1 -0
  82. package/dist/lib/suggestions/suggest.js +1 -0
  83. package/dist/lib/suggestions/suggestAStar.js +1 -0
  84. package/dist/lib/suggestions/suggestCollector.js +1 -0
  85. package/dist/lib/suggestions/suggestTrieData.js +1 -0
  86. package/dist/lib/trie.js +1 -0
  87. package/dist/lib/trieRef.js +1 -0
  88. package/dist/lib/types.js +1 -0
  89. package/dist/lib/utils/PairingHeap.js +1 -0
  90. package/dist/lib/utils/assert.js +1 -0
  91. package/dist/lib/utils/autoCacheMap.js +1 -0
  92. package/dist/lib/utils/bufferLines.js +1 -0
  93. package/dist/lib/utils/clean.js +1 -0
  94. package/dist/lib/utils/isDefined.js +1 -0
  95. package/dist/lib/utils/memorizeLastCall.js +1 -0
  96. package/dist/lib/utils/memorizer.js +1 -0
  97. package/dist/lib/utils/mergeDefaults.js +1 -0
  98. package/dist/lib/utils/mergeOptionalWithDefaults.js +1 -0
  99. package/dist/lib/utils/normalizeWord.js +1 -0
  100. package/dist/lib/utils/secondChanceCache.js +1 -0
  101. package/dist/lib/utils/text.js +1 -0
  102. package/dist/lib/utils/timer.js +1 -0
  103. package/dist/lib/utils/util.js +1 -0
  104. package/dist/lib/walker/hintedWalker.js +1 -0
  105. package/dist/lib/walker/index.js +1 -0
  106. package/dist/lib/walker/walker.js +1 -0
  107. package/dist/lib/walker/walkerTypes.js +1 -0
  108. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1 +1,2 @@
1
1
  export * from './lib/index.js';
2
+ //# sourceMappingURL=index.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=BuilderCursor.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=TrieBuilder.js.map
@@ -19,3 +19,4 @@ function commonPrefixLen(a, b) {
19
19
  }
20
20
  return i;
21
21
  }
22
+ //# sourceMappingURL=cursor-util.js.map
@@ -1 +1,2 @@
1
1
  export { insertWordsAtCursor } from './cursor-util.js';
2
+ //# sourceMappingURL=index.js.map
package/dist/lib/ITrie.js CHANGED
@@ -174,3 +174,4 @@ export class ITrieImpl {
174
174
  return findOptions;
175
175
  }
176
176
  }
177
+ //# sourceMappingURL=ITrie.js.map
@@ -2,3 +2,4 @@
2
2
  * No compounding allowed.
3
3
  */
4
4
  export {};
5
+ //# sourceMappingURL=CompoundModes.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=FindOptions.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=ITrieNode.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=TrieInfo.js.map
@@ -287,3 +287,4 @@ function _createFindOptions(options) {
287
287
  export const __testing__ = {
288
288
  findLegacyCompoundWord,
289
289
  };
290
+ //# sourceMappingURL=find.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=index.js.map
@@ -60,3 +60,4 @@ export function countWords(root) {
60
60
  }
61
61
  return walk(root);
62
62
  }
63
+ //# sourceMappingURL=trie-util.js.map
@@ -136,3 +136,4 @@ class ITrieNodeFiltered {
136
136
  return this.srcNode.child(idx);
137
137
  }
138
138
  }
139
+ //# sourceMappingURL=hintedWalker.js.map
@@ -1,3 +1,4 @@
1
1
  export { hintedWalker } from './hintedWalker.js';
2
2
  export * from './walker.js';
3
3
  export * from './walkerTypes.js';
4
+ //# sourceMappingURL=index.js.map
@@ -120,3 +120,4 @@ export function* walkerWordsITrie(root) {
120
120
  depth -= 1;
121
121
  }
122
122
  }
123
+ //# sourceMappingURL=walker.js.map
@@ -1 +1,2 @@
1
1
  export { CompoundWordsMethod, JOIN_SEPARATOR, WORD_SEPARATOR } from '../../walker/walkerTypes.js';
2
+ //# sourceMappingURL=walkerTypes.js.map
@@ -202,3 +202,4 @@ function splitLine(line, regExp) {
202
202
  export const __testing__ = {
203
203
  splitLine,
204
204
  };
205
+ //# sourceMappingURL=SimpleDictionaryParser.js.map
@@ -171,3 +171,4 @@ function createCharToIndexMap(charIndex) {
171
171
  }
172
172
  return map;
173
173
  }
174
+ //# sourceMappingURL=FastTrieBlob.js.map
@@ -6,3 +6,4 @@ export function extractInfo(info) {
6
6
  NodeChildRefShift,
7
7
  };
8
8
  }
9
+ //# sourceMappingURL=FastTrieBlobBitMaskInfo.js.map
@@ -269,3 +269,4 @@ FastTrieBlobBuilder.DefaultBitMaskInfo = {
269
269
  NodeMaskChildCharIndex: FastTrieBlobBuilder.NodeMaskChildCharIndex,
270
270
  NodeChildRefShift: FastTrieBlobBuilder.NodeChildRefShift,
271
271
  };
272
+ //# sourceMappingURL=FastTrieBlobBuilder.js.map
@@ -90,3 +90,4 @@ export class FastTrieBlobIRoot extends FastTrieBlobINode {
90
90
  return new FastTrieBlobINode(this.trie, id);
91
91
  }
92
92
  }
93
+ //# sourceMappingURL=FastTrieBlobIRoot.js.map
@@ -9,3 +9,4 @@ export class FastTrieBlobInternals {
9
9
  this.NodeChildRefShift = NodeChildRefShift;
10
10
  }
11
11
  }
12
+ //# sourceMappingURL=FastTrieBlobInternals.js.map
@@ -234,3 +234,4 @@ function splitString(s, len = 64) {
234
234
  }
235
235
  return splits;
236
236
  }
237
+ //# sourceMappingURL=TrieBlob.js.map
@@ -101,3 +101,4 @@ export class TrieBlobIRoot extends TrieBlobINode {
101
101
  return new TrieBlobINode(this.trie, id);
102
102
  }
103
103
  }
104
+ //# sourceMappingURL=TrieBlobIRoot.js.map
@@ -61,3 +61,4 @@ export function createTrieBlobFromITrieNodeRoot(root) {
61
61
  export function createTrieBlobFromTrieData(trie) {
62
62
  return createTrieBlobFromITrieNodeRoot(trie.getRoot());
63
63
  }
64
+ //# sourceMappingURL=createTrieBlob.js.map
@@ -1 +1,2 @@
1
1
  export { TrieBlob } from './TrieBlob.js';
2
+ //# sourceMappingURL=index.js.map
@@ -6,3 +6,4 @@ export function resolveMap(map, key, resolve) {
6
6
  map.set(key, v);
7
7
  return v;
8
8
  }
9
+ //# sourceMappingURL=resolveMap.js.map
@@ -295,3 +295,4 @@ function assertFrozen(n) {
295
295
  if (!Object.isFrozen(n) || !('id' in n))
296
296
  throw Error('Must be TrieNodeExFrozen');
297
297
  }
298
+ //# sourceMappingURL=TrieBuilder.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=TrieCursor.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=index.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=TrieData.js.map
@@ -1 +1,2 @@
1
1
  export const FLAG_WORD = 1;
2
+ //# sourceMappingURL=TrieNode.js.map
@@ -96,3 +96,4 @@ export function buildTrieNodeTrieFromWords(words) {
96
96
  insertWordsAtCursor(builder.getCursor(), words);
97
97
  return builder.build();
98
98
  }
99
+ //# sourceMappingURL=TrieNodeBuilder.js.map
@@ -43,3 +43,4 @@ export class TrieNodeTrie {
43
43
  return new TrieNodeTrie(consolidate(root));
44
44
  }
45
45
  }
46
+ //# sourceMappingURL=TrieNodeTrie.js.map
@@ -56,3 +56,4 @@ export function* compoundWords(trie, maxDepth, caseSensitive = true) {
56
56
  item = stream.next();
57
57
  }
58
58
  }
59
+ //# sourceMappingURL=compoundWalker.js.map
@@ -284,3 +284,4 @@ function _createFindOptions(options) {
284
284
  export const __testing__ = {
285
285
  findLegacyCompoundWord,
286
286
  };
287
+ //# sourceMappingURL=find.js.map
@@ -171,3 +171,4 @@ export function trieNodeToRoot(node, options) {
171
171
  c: node.c || Object.create(null),
172
172
  };
173
173
  }
174
+ //# sourceMappingURL=trie-util.js.map
@@ -82,3 +82,4 @@ class ImplITrieRoot extends ImplITrieNode {
82
82
  return new this(node);
83
83
  }
84
84
  }
85
+ //# sourceMappingURL=trie.js.map
@@ -5,3 +5,4 @@ export function buildITrieFromWords(words, info = {}) {
5
5
  builder.insert(words);
6
6
  return new ITrieImpl(builder.build());
7
7
  }
8
+ //# sourceMappingURL=buildITrie.js.map
@@ -91,3 +91,4 @@ export function consolidate(root) {
91
91
  cached.set(eow, count++);
92
92
  return trieNodeToRoot(process(root), root);
93
93
  }
94
+ //# sourceMappingURL=consolidate.js.map
@@ -10,3 +10,4 @@ export const defaultTrieInfo = Object.freeze({
10
10
  stripCaseAndAccentsPrefix: CASE_INSENSITIVE_PREFIX,
11
11
  isCaseAware: true,
12
12
  });
13
+ //# sourceMappingURL=constants.js.map
@@ -83,3 +83,4 @@ export function convertToTrieRefNodes(root) {
83
83
  rollup(root);
84
84
  return walk(root);
85
85
  }
86
+ //# sourceMappingURL=convertToTrieRefNodes.js.map
@@ -4,3 +4,4 @@ export function decodeTrie(raw) {
4
4
  const data = decodeTrieData(raw);
5
5
  return new ITrieImpl(data);
6
6
  }
7
+ //# sourceMappingURL=decodeTrie.js.map
@@ -40,3 +40,4 @@ export function createWeightedMap(defs) {
40
40
  export function updatedWeightedMap(weightedMap, def) {
41
41
  addDefToWeightMap(weightedMap, def);
42
42
  }
43
+ //# sourceMappingURL=distance.js.map
@@ -51,3 +51,4 @@ function compare(a, b) {
51
51
  // Choose lowest cost or farthest Manhattan distance.
52
52
  return a.c - b.c || b.ai + b.bi - a.ai - a.bi;
53
53
  }
54
+ //# sourceMappingURL=distanceAStar.js.map
@@ -136,3 +136,4 @@ function compare(a, b) {
136
136
  // lowest cost then progress
137
137
  return a.c - b.c || b.ai + b.bi - a.ai - a.bi;
138
138
  }
139
+ //# sourceMappingURL=distanceAStarWeighted.js.map
@@ -53,3 +53,4 @@ export function formattedDistance(wordA, wordB, weightMap, cost) {
53
53
  const distResult = distanceAStarWeightedEx(wordA, wordB, calc, cost);
54
54
  return formatExResult(distResult);
55
55
  }
56
+ //# sourceMappingURL=formatResultEx.js.map
@@ -1 +1,2 @@
1
1
  export { createWeightedMap, editDistance, editDistanceWeighted } from './distance.js';
2
+ //# sourceMappingURL=index.js.map
@@ -131,3 +131,4 @@ export function selectNearestWords(word, words, count, maxEdits) {
131
131
  return pRow[nA];
132
132
  }
133
133
  }
134
+ //# sourceMappingURL=levenshtein.js.map
@@ -292,3 +292,4 @@ export const __testing__ = {
292
292
  splitMap,
293
293
  splitMapSubstrings,
294
294
  };
295
+ //# sourceMappingURL=weightedMaps.js.map
@@ -108,3 +108,4 @@ function signature(n) {
108
108
  function copy(n) {
109
109
  return n.f ? { f: n.f, r: undefined } : { f: undefined, r: undefined };
110
110
  }
111
+ //# sourceMappingURL=flatten.js.map
package/dist/lib/index.js CHANGED
@@ -19,3 +19,4 @@ export { mergeOptionalWithDefaults } from './utils/mergeOptionalWithDefaults.js'
19
19
  export { normalizeWord, normalizeWordForCaseInsensitive, normalizeWordToLowercase } from './utils/normalizeWord.js';
20
20
  export { expandCharacterSet } from './utils/text.js';
21
21
  export { CompoundWordsMethod, hintedWalker, JOIN_SEPARATOR, walker, WORD_SEPARATOR } from './walker/index.js';
22
+ //# sourceMappingURL=index.js.map
@@ -14,3 +14,4 @@ export const REF_REL = '@';
14
14
  export const EOR = ';';
15
15
  /** Escape the next character */
16
16
  export const ESCAPE = '\\';
17
+ //# sourceMappingURL=constants.js.map
@@ -48,3 +48,4 @@ function importTrie(input) {
48
48
  }
49
49
  return method(lines);
50
50
  }
51
+ //# sourceMappingURL=decode.js.map
@@ -62,3 +62,4 @@ export function importTrie(input) {
62
62
  }
63
63
  return method(lines);
64
64
  }
65
+ //# sourceMappingURL=importExport.js.map
@@ -119,3 +119,4 @@ export function importTrie(linesX) {
119
119
  }, { lines: 0, nodes: [], root: {} });
120
120
  return trieNodeToRoot(n.root, { isCaseAware: false });
121
121
  }
122
+ //# sourceMappingURL=importExportV1.js.map
@@ -166,3 +166,4 @@ export function importTrie(linesX) {
166
166
  }, { nodes: [], root: { s: '', c: Object.create(null) } });
167
167
  return trieNodeToRoot(n.root, { isCaseAware: false });
168
168
  }
169
+ //# sourceMappingURL=importExportV2.js.map
@@ -138,3 +138,4 @@ function stringToCharSet(values) {
138
138
  }
139
139
  return set;
140
140
  }
141
+ //# sourceMappingURL=importExportV3.js.map
@@ -428,3 +428,4 @@ function tapIterable(iterable) {
428
428
  export const __testing__ = {
429
429
  buildReferenceMap,
430
430
  };
431
+ //# sourceMappingURL=importExportV4.js.map
@@ -155,3 +155,4 @@ function stringToCharSet(values) {
155
155
  }
156
156
  return set;
157
157
  }
158
+ //# sourceMappingURL=importV3.js.map
@@ -3,3 +3,4 @@ import { importTrieV3WithBuilder } from './importV3.js';
3
3
  export function importTrieV3AsFastTrieBlob(srcLines) {
4
4
  return importTrieV3WithBuilder(new FastTrieBlobBuilder(), srcLines);
5
5
  }
6
+ //# sourceMappingURL=importV3FastBlob.js.map
@@ -1 +1,2 @@
1
1
  export { decodeTrieData } from './decode.js';
2
+ //# sourceMappingURL=index.js.map
@@ -8,3 +8,4 @@ export function joinLetters(letters) {
8
8
  const v = [...letters];
9
9
  return v.map((a) => (a.length > 1 || !a.length ? `(${a})` : a)).join('');
10
10
  }
11
+ //# sourceMappingURL=joinLetters.js.map
@@ -20,3 +20,4 @@ export function mapHunspellCosts(costs = {}) {
20
20
  export function mapEditCosts(costs = {}) {
21
21
  return { ...defaultEditCosts, ...cleanCopy(costs) };
22
22
  }
23
+ //# sourceMappingURL=mapCosts.js.map
@@ -61,3 +61,4 @@ function mapAdjustment(adj) {
61
61
  penalty,
62
62
  };
63
63
  }
64
+ //# sourceMappingURL=mapDictionaryInfo.js.map
@@ -32,3 +32,4 @@ export function mapDictionaryInformationToWeightMap(dictInfo) {
32
32
  return map;
33
33
  }
34
34
  export const __testing__ = {};
35
+ //# sourceMappingURL=mapDictionaryInfoToWeightMap.js.map
@@ -193,3 +193,4 @@ export const __testing__ = {
193
193
  calcCosts,
194
194
  split: splitMap,
195
195
  };
196
+ //# sourceMappingURL=mapHunspellInformation.js.map
@@ -110,3 +110,4 @@ export function* splitMap(map) {
110
110
  yield char;
111
111
  }
112
112
  }
113
+ //# sourceMappingURL=mapToSuggestionCostDef.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=DictionaryInformation.js.map
@@ -1 +1,2 @@
1
1
  export { Locale, parseLocale } from './locale.js';
2
+ //# sourceMappingURL=index.js.map
@@ -531,3 +531,4 @@ export const codes = [
531
531
  ['zu', 'Zulu'],
532
532
  ['zu-ZA', 'Zulu', 'South Africa'],
533
533
  ];
534
+ //# sourceMappingURL=knownLocales.js.map
@@ -58,3 +58,4 @@ export function parseLocale(locales) {
58
58
  locales = typeof locales === 'string' ? locales.split(',') : locales;
59
59
  return locales.map(createLocale);
60
60
  }
61
+ //# sourceMappingURL=locale.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=suggestionCostsDef.js.map
@@ -2,3 +2,4 @@
2
2
  * This file is here to support code the referenced suggest directly and limit the exports.
3
3
  */
4
4
  export { genCompoundableSuggestions, genSuggestions, suggest } from './suggestions/suggest.js';
5
+ //# sourceMappingURL=suggest.js.map
@@ -1 +1,2 @@
1
1
  export { compSuggestionResults, defaultSuggestionCollectorOptions, impersonateCollector, isSuggestionResult, suggestionCollector, } from './suggestions/suggestCollector.js';
2
+ //# sourceMappingURL=suggestCollector.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=SuggestionTypes.js.map
@@ -29,3 +29,4 @@ export function collectSuggestions(sugGen, maxCost = 300, numSugs = 10) {
29
29
  return a.cost - b.cost;
30
30
  }
31
31
  }
32
+ //# sourceMappingURL=collectSuggestions.js.map
@@ -9,3 +9,4 @@ export const opCosts = {
9
9
  wordBreak: 99,
10
10
  wordLengthCostFactor: 0.5,
11
11
  };
12
+ //# sourceMappingURL=constants.js.map
@@ -42,3 +42,4 @@ export function createSuggestionOptions(...opts) {
42
42
  function assign(dest, src, k) {
43
43
  dest[k] = src[k] ?? dest[k];
44
44
  }
45
+ //# sourceMappingURL=genSuggestionsOptions.js.map
@@ -63,3 +63,4 @@ function calcVisualLetterMasks(groups) {
63
63
  }
64
64
  return map;
65
65
  }
66
+ //# sourceMappingURL=orthography.js.map
@@ -192,3 +192,4 @@ export function* genCompoundableSuggestions(root, word, options = {}) {
192
192
  }
193
193
  return undefined;
194
194
  }
195
+ //# sourceMappingURL=suggest.js.map
@@ -340,3 +340,4 @@ export const __testing__ = {
340
340
  editHistory,
341
341
  serializeCostTrie,
342
342
  };
343
+ //# sourceMappingURL=suggestAStar.js.map
@@ -206,3 +206,4 @@ export function isSuggestionResult(s) {
206
206
  const r = s;
207
207
  return !!r && typeof r === 'object' && r?.cost !== undefined && r.word != undefined;
208
208
  }
209
+ //# sourceMappingURL=suggestCollector.js.map
@@ -1 +1,2 @@
1
1
  export { getSuggestionsAStar as genSuggestions, suggestAStar as suggest } from './suggestAStar.js';
2
+ //# sourceMappingURL=suggestTrieData.js.map
package/dist/lib/trie.js CHANGED
@@ -183,3 +183,4 @@ export class Trie {
183
183
  return findOptions;
184
184
  }
185
185
  }
186
+ //# sourceMappingURL=trie.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=trieRef.js.map
package/dist/lib/types.js CHANGED
@@ -11,3 +11,4 @@ export {};
11
11
  // type OO = UndefinedToOptional<X>;
12
12
  // const c: M = { a: 'hello', b: 'h', c: 4 };
13
13
  // const x = c;
14
+ //# sourceMappingURL=types.js.map
@@ -93,3 +93,4 @@ export const heapMethods = {
93
93
  merge,
94
94
  mergeSiblings,
95
95
  };
96
+ //# sourceMappingURL=PairingHeap.js.map
@@ -3,3 +3,4 @@ export function assert(condition, message = 'Assert Failed') {
3
3
  return;
4
4
  throw new Error(message);
5
5
  }
6
+ //# sourceMappingURL=assert.js.map
@@ -26,3 +26,4 @@ export class AutoCacheWeakMap extends WeakMap {
26
26
  return u;
27
27
  }
28
28
  }
29
+ //# sourceMappingURL=autoCacheMap.js.map
@@ -24,3 +24,4 @@ export function* bufferLines(iter, bufferSize, eol) {
24
24
  }
25
25
  }
26
26
  }
27
+ //# sourceMappingURL=bufferLines.js.map
@@ -7,3 +7,4 @@ export function clean(t) {
7
7
  }
8
8
  return copy;
9
9
  }
10
+ //# sourceMappingURL=clean.js.map
@@ -1,3 +1,4 @@
1
1
  export function isDefined(t) {
2
2
  return t !== undefined;
3
3
  }
4
+ //# sourceMappingURL=isDefined.js.map
@@ -11,3 +11,4 @@ export function memorizeLastCall(fn) {
11
11
  }
12
12
  return calc;
13
13
  }
14
+ //# sourceMappingURL=memorizeLastCall.js.map
@@ -35,3 +35,4 @@ export function memorizer(fn) {
35
35
  return v;
36
36
  };
37
37
  }
38
+ //# sourceMappingURL=memorizer.js.map
@@ -17,3 +17,4 @@ export function mergeDefaults(value, defaultValue) {
17
17
  }
18
18
  return result;
19
19
  }
20
+ //# sourceMappingURL=mergeDefaults.js.map
@@ -3,3 +3,4 @@ import { mergeDefaults } from './mergeDefaults.js';
3
3
  export function mergeOptionalWithDefaults(...options) {
4
4
  return options.reduce((acc, opt) => mergeDefaults(opt, acc), defaultTrieInfo);
5
5
  }
6
+ //# sourceMappingURL=mergeOptionalWithDefaults.js.map
@@ -20,3 +20,4 @@ export const normalizeWordForCaseInsensitive = (text) => {
20
20
  const t = text.toLowerCase();
21
21
  return [t, t.normalize('NFD').replace(/\p{M}/gu, '')];
22
22
  };
23
+ //# sourceMappingURL=normalizeWord.js.map
@@ -53,3 +53,4 @@ export class SecondChanceCache {
53
53
  return [...this.map1, ...this.map0];
54
54
  }
55
55
  }
56
+ //# sourceMappingURL=secondChanceCache.js.map
@@ -99,3 +99,4 @@ export function stripAccents(characters) {
99
99
  export function stripNonAccents(characters) {
100
100
  return characters.normalize('NFD').replace(/[^\p{M}]/gu, '');
101
101
  }
102
+ //# sourceMappingURL=text.js.map
@@ -114,3 +114,4 @@ export function getGlobalPerfTimer() {
114
114
  globalPerfTimer = timer;
115
115
  return timer;
116
116
  }
117
+ //# sourceMappingURL=timer.js.map
@@ -69,3 +69,4 @@ export function isArrayEqual(a, b) {
69
69
  }
70
70
  return isMatch;
71
71
  }
72
+ //# sourceMappingURL=util.js.map
@@ -101,3 +101,4 @@ function existMap(values) {
101
101
  export const __testing__ = {
102
102
  hintedWalkerNext,
103
103
  };
104
+ //# sourceMappingURL=hintedWalker.js.map
@@ -1,3 +1,4 @@
1
1
  export { hintedWalker } from './hintedWalker.js';
2
2
  export * from './walker.js';
3
3
  export * from './walkerTypes.js';
4
+ //# sourceMappingURL=index.js.map
@@ -172,3 +172,4 @@ export function* walkerWordsITrie(root) {
172
172
  depth -= 1;
173
173
  }
174
174
  }
175
+ //# sourceMappingURL=walker.js.map
@@ -15,3 +15,4 @@ export var CompoundWordsMethod;
15
15
  */
16
16
  CompoundWordsMethod[CompoundWordsMethod["JOIN_WORDS"] = 2] = "JOIN_WORDS";
17
17
  })(CompoundWordsMethod || (CompoundWordsMethod = {}));
18
+ //# sourceMappingURL=walkerTypes.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cspell-trie-lib",
3
- "version": "7.0.2",
3
+ "version": "7.2.0",
4
4
  "description": "Trie Data Structure to support cspell.",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",
@@ -46,8 +46,8 @@
46
46
  },
47
47
  "homepage": "https://github.com/streetsidesoftware/cspell#readme",
48
48
  "dependencies": {
49
- "@cspell/cspell-pipe": "7.0.2",
50
- "@cspell/cspell-types": "7.0.2",
49
+ "@cspell/cspell-pipe": "7.2.0",
50
+ "@cspell/cspell-types": "7.2.0",
51
51
  "gensequence": "^5.0.2"
52
52
  },
53
53
  "engines": {
@@ -59,5 +59,5 @@
59
59
  "@cspell/dict-nl-nl": "^2.2.9",
60
60
  "import-meta-resolve": "^3.0.0"
61
61
  },
62
- "gitHead": "25aa083421fc81e4d5b7cedb4755f9b327120cfc"
62
+ "gitHead": "b08f7ddc3a4aa22cc80c69ca6638b2a943659a31"
63
63
  }