Skip to content

Commit

Permalink
Update filler words
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquelinecai committed Dec 14, 2024
1 parent 55fd241 commit 8a30fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/course/course.recalgo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 8a30fe6

Please sign in to comment.