// Path: JHazm/src/main/java/jhazm/tokenizer/SentenceTokenizer.java
// public class SentenceTokenizer {
//     public static SentenceTokenizer instance;
//     private final RegexPattern pattern;
// 
//     public SentenceTokenizer() {
//         this.pattern = new RegexPattern("([!\\.\\?⸮؟]+)[ \\n]+", "$1\n\n");
//     }
// 
//     public static SentenceTokenizer i() {
//         if (instance != null) return instance;
//         instance = new SentenceTokenizer();
//         return instance;
//     }
// 
//     public List<String> tokenize(String text) {
//         text = this.pattern.apply(text);
//         List<String> sentences = Arrays.asList(text.split("\n\n"));
//         for (String sentence : sentences) {
//             sentence = sentence.replace("\n", " ").trim();
//         }
//         return sentences;
//     }
// }


import jhazm.tokenizer.SentenceTokenizer;
import org.junit.Test;
import java.util.List;
import static org.junit.Assert.assertEquals;
package jhazm.test.tokenizer;




/**
 *
 * @author Mojtaba Khallash
 */
public class SentenceTokenizerTests {

    public SentenceTokenizerTests() {
    }

    @Test
    public void tokenizeTest() {
// Path: JHazm/src/main/java/jhazm/tokenizer/SentenceTokenizer.java
// public class SentenceTokenizer {
//     public static SentenceTokenizer instance;
//     private final RegexPattern pattern;
// 
//     public SentenceTokenizer() {
//         this.pattern = new RegexPattern("([!\\.\\?⸮؟]+)[ \\n]+", "$1\n\n");
//     }
// 
//     public static SentenceTokenizer i() {
//         if (instance != null) return instance;
//         instance = new SentenceTokenizer();
//         return instance;
//     }
// 
//     public List<String> tokenize(String text) {
//         text = this.pattern.apply(text);
//         List<String> sentences = Arrays.asList(text.split("\n\n"));
//         for (String sentence : sentences) {
//             sentence = sentence.replace("\n", " ").trim();
//         }
//         return sentences;
//     }
// }


// Path: JHazm/src/test/java/jhazm/test/tokenizer/SentenceTokenizerTests.java
import jhazm.tokenizer.SentenceTokenizer;
import org.junit.Test;
import java.util.List;
import static org.junit.Assert.assertEquals;

package jhazm.test.tokenizer;




/**
 *
 * @author Mojtaba Khallash
 */
public class SentenceTokenizerTests {

    public SentenceTokenizerTests() {
    }

    @Test
    public void tokenizeTest() {
        SentenceTokenizer senTokenizer = new SentenceTokenizer();