eubinecto / politely

A hybrid politeness styler for the Korean Language / 하이브리드 존댓말 변환기
https://politely.streamlitapp.com
49 stars 0 forks source link

refactoring: SF-agnostic rules #95

Closed eubinecto closed 2 years ago

eubinecto commented 2 years ago

Why?

If I were to support - 했다. & 했다! - I have to write two near-identical rules:

ᆫ다/EF+./SF:
  1: ᆫ다/EF+./SF
  2: 어요/EF+./SF
  3: 읍니다/EF+./SF
ᆫ다/EF+!/SF:
  1: ᆫ다/EF+!/SF
  2: 어요/EF+!/SF
  3: 읍니다/EF+!/SF

But wouldn't it be better if I joined them with regex? Let's join them with regex.

To-do's