LangCorrect / server

Master grammar, spelling, and syntax in the language(s) you’re learning through direct feedback on your writing from fluent, native speakers.
https://langcorrect.com
22 stars 12 forks source link

How Can I Make a Line Break Successfully? #580

Open Heated-Canine opened 4 months ago

Heated-Canine commented 4 months ago

https://langcorrect.com/journals/when-the-cats-away-the-mice-will-play-%E9%AC%BC%E3%81%AE%E5%B1%85%E3%81%AC%E9%96%93%E3%81%AB%E6%B4%97%E6%BF%AF/

This entry was rather a mess from the beginning because I quoted sentences from ChatGPT, and the sentences included both Japanese and English. However, I didn't realize that it became much worse until I saw a correction and saw what was going on with the correction-making page. My intention to break line by putting "maru" or "。” at the end of a Japanese sentence failed.

I'd like to know here how to cope with the LangCorrect system. I want to show my entry as easy as possible by correction makers.

For example, 私は花子です。. (Adding a dot "." after a maru "。" can solve this problem?)

Thanks!

Heated-Canine commented 4 months ago

https://langcorrect.com/journals/trying-to-indicate-a-good-looking-correction-making-page/

This is my attempt to solve the problem. I hope this works.

Heated-Canine commented 4 months ago

How about creating a specific mark to break the line mechanically on LangCorrect? For example, "&".

danielzeljko commented 4 months ago

My intention to break line by putting "maru" or "。” at the end of a Japanese sentence failed.

This is expected behavior because NLTK parses the sentences looking for English equivalents for sentence ending markers. So, using a Japanese maru does nothing, while using an English maru does.

"猫です。犬です。I like to eat ice cream." would be considered as a single sentence, where the "English" sentence starts with 猫 and ends with cream.

danielzeljko commented 4 months ago

How about creating a specific mark to break the line mechanically on LangCorrect? For example, "&".

I think it would be more intuitive to break the lines based on a new line character (hitting enter on the keyboard). This in combination with an option to select the sentence parser (new line or NLP) would be a great temporary solution. New line would handle mixed text (e.g. Japanese and English) while NLP would handle language specific.

I hope I addressed your concerns. If you have any more questions let me know. I'm getting ready for my flight to Tokyo, so it'll be a few days before I can respond.

If you live in Tokyo we should grab a drink if you're down 😄