From 8a30fe6022fe6a66fb83dee8852601396b115855 Mon Sep 17 00:00:00 2001 From: Jacqueline Date: Fri, 13 Dec 2024 21:35:32 -0500 Subject: [PATCH] Update filler words --- server/src/course/course.recalgo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/course/course.recalgo.ts b/server/src/course/course.recalgo.ts index aaa91fbb..5c31cd77 100644 --- a/server/src/course/course.recalgo.ts +++ b/server/src/course/course.recalgo.ts @@ -30,7 +30,7 @@ const cleanWords = (sentence: string, fillerWords: string[]) => * @returns The processed description for a course */ export const preprocess = (description: string) => { - const fillerWords = ["and", "the", "to", "for", "with"]; + const fillerWords = ["and", "the", "to", "for", "with", "it", "you", "not", "but", "have", "been", "of", "all", "in", "your", "their", "do", "this", "a", "is", "be"]; const sentences = description.match(/[^.!?]+[.!?]*/g) || [description]; const processedText = sentences.map(sentence => {