2020 Volume 27 Issue 2 Pages 411-444
This paper describes a domain-specific language, HaoriBricks3 (HB3), for writing programs that compose Japanese sentences. In HB3, we write a Ruby code called brick code, which instructs how to compose a sentence. The evaluation of a brick code produces the Ruby object called brick structure, from which the surface sentence string is generated by the method to_ss. This paper presents the design philosophy and implementational innovations of HB3, as well as demonstrates the applications of HB3.