package com.example;


public class DeleteStopWords {
    public static String[] stopWords = {"это ", "как ", "так ", "и ", "в ", "над ", "к ", "до ", "не ", "на ", "но ", "за ", "то ",
                    "с ", "ли ", "а ", "во ", "от ", "со ", "для ", "о ", "же ", "ну ", "вы ", "бы ", "что ", "кто ", "он ", "она "};


    public String deleteStopWords (String str){

        str = str.toLowerCase();

        str = str.replaceAll("[^a-zA-Zа-яА-Я]", " ");
        for (String i: stopWords) {
            str = str.replaceAll(i, "");
        }
        return str;
    }
}

@@ -15,16 +15,41 @@
 ample;%0A%0A
+import java.util.Arrays;%0A
 %0Apublic 
@@ -120,96 +120,90 @@
 %22%D1%8D%D1%82%D0%BE
- 
 %22, %22%D0%BA%D0%B0%D0%BA
- 
 %22, %22%D1%82%D0%B0%D0%BA
- 
 %22, %22%D0%B8
- 
 %22, %22%D0%B2
- 
 %22, %22%D0%BD%D0%B0%D0%B4
- 
 %22, %22%D0%BA
- 
 %22, %22%D0%B4%D0%BE
- 
 %22, %22%D0%BD%D0%B5
- 
 %22, %22%D0%BD%D0%B0
- 
 %22, %22%D0%BD%D0%BE
- 
 %22,
- %22%D0%B7%D0%B0 %22, %22%D1%82%D0%BE %22,%0A
+%0A                   
     
@@ -221,119 +221,162 @@
     
+  %22%D0%B7%D0%B0%22, %22%D1%82%D0%BE%22,
  %22%D1%81
- 
 %22, %22%D0%BB%D0%B8
- 
 %22, %22%D0%B0
- 
 %22, %22%D0%B2%D0%BE
- 
 %22, %22%D0%BE%D1%82
- 
 %22, %22%D1%81%D0%BE
- 
 %22, %22%D0%B4%D0%BB%D1%8F
- 
 %22, %22%D0%BE
- 
 %22, %22%D0%B6%D0%B5
- 
 %22,
+%0A                                       
  %22%D0%BD%D1%83
- 
 %22, %22%D0%B2%D1%8B
- 
 %22, %22%D0%B1%D1%8B
- 
 %22, %22%D1%87%D1%82%D0%BE
- 
 %22, %22%D0%BA%D1%82%D0%BE
- 
 %22, %22%D0%BE%D0%BD
- 
 %22, %22%D0%BE%D0%BD%D0%B0
- 
+%22, %22%D0%BE%D0%B1
 %22%7D;%0A
@@ -508,17 +508,44 @@
 %D1%8F%D0%90-%D0%AF
+%5E 
 %5D%22, %22
- 
 %22);
+%0A        String res = %22%22;%0A
 %0A   
@@ -552,17 +552,16 @@
      for
- 
 (String 
@@ -569,60 +569,115 @@
 : st
-opWords) %7B%0A            str = str.replaceAll(i, %22%22);%0A
+r.split(%22 %22))%7B%0A            if (!Arrays.asList(stopWords).contains(i))%7B%0A                res += i + %22 %22;%0A    
     
@@ -682,16 +682,27 @@
       %7D%0A
+        %7D%0A%0A
         
@@ -708,19 +708,19 @@
  return 
-str
+res
 ;%0A    %7D%0A

stop words