File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/routes/org/[orgid]/processes Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 298298 process .title
299299 .toLowerCase ()
300300 .split (/ \W + / )
301- .slice (1 ) // Skip the first word, which is usually a verb, and not revealing of the topic
302301 .filter ((w ) => w .length > 3 && ! StopWords .includes (w ))
303302 .toSorted ()
304303 )
313312 const common = processWords [a ].words .filter ((word ) => processWords [b ].words .includes (word ));
314313 // If >=75% of the words are in common, count as a duplicate.
315314 if (
315+ common .length > 2 &&
316316 common .length / Math .min (processWords [a ].words .length , processWords [b ].words .length ) >=
317- 0.75
317+ 0.75
318318 ) {
319319 // See if we already have this combination of processes
320320 const existing = duplicates .find ((d ) => d .words .join (' ,' ) === common .join (' ,' ));
You can’t perform that action at this time.
0 commit comments