Grammar not getting corrected

Hi,

I am using LanguageTool4.4 with Java API.

I have used the sample code in Java API - LanguageTool Wiki.

Run1:
Input given:
“Therefore, the payment option if not available to you.”

Output received:
“Therefore, the payment option if not available to you.”

Expected output:
“Therefore, the payment option is not available to you.”.

Run2:
Input given:
“Please find the payment details for the year 2018 are follows”.

Output received:
“Please find the payment details for the year 2018 are follows”

Expected output:
“Please find the payment details for the year 2018 are as follows”.

Please let know, if this is a bug or am I missing something to enable in my code.