package Ġjp . mi h ails ku z mins . s ug oin ih ongo app . persistence . models Ċ Ċ import Ġjp . mi h ails ku z mins . s ug oin ih ongo app . extensions . run If Ċ Ċ interface ĠWord Ġ{ ĊĊ ĉ val Ġoriginal : ĠString Ċ ĉ val Ġtranslation : ĠString Ċ ĉ val Ġtran scription : ĠString Ċ } Ċ Ċ fun ĠWord . create J apanese Text With NewLine ( is Tran scription Shown : ĠBoolean ) Ġ= Ċ ĉ StringBuilder ( translation ) Ċĉ ĉ . run If ( is Tran scription Shown Ġ&& Ġtran scription . isNotBlank ()) Ġ{ Ċĉĉ ĉ append ln (). append ( tran scription ) Ċĉ ĉ }. toString () Ċ Ċ fun ĠWord . create J apanese Text With Br ackets () Ġ= Ċ ĉ StringBuilder ( translation ) Ċĉ ĉ . run If ( tran scription . isNotBlank ()) Ġ{ Ġappend (" Ġ[ ${ tran scription }] ") Ġ} Ċĉ ĉ . toString ()