The languagetool is taking the complete text and does the grammar check instead of tokenizing the text in sentences. Since it doesn’t tokenize the text, only first word of the complete text is checked for the uppercase rule. If there are two sentences in text, it doesn’t check uppercase rule for second sentence.
Now it works fine when I create new web project and include the library. But when I include it in existing project, it doesn’t work. Looking at the code for SRXSentenceTokenizer, I see it loads segment rules for segment tokenization. But I can’t find the rule file. Does anyone know the directory path for the file if any?