Detecting Email Components with Constraints: Expressive and Extensible Models in Answer Set Programming

Gromit Yeuk-Yin Chan, Shunan Guo, Caroline Kim, Cole Connelly, Michelle Lee, Andrew Thomson and Eunyee Koh

Abstract

Detecting structures and components in business emails is vital for editor software to convert third-party emails so that designers can edit them without needing to know how HTML works. In a production environment, the challenge is to make the model easy to be understood and maintained by different stakeholders. We propose detecting email components with a collection of constraints written in Answer Set Programming (ASP). Hard constraints can detect well-defined components like email layouts, and soft constraints can incorporate ML to detect custom components like buttons and titles in emails. Using constraints, developers can apply their domain knowledge to the model and express them in a concrete, extensible, and deterministic form. We demonstrate the effectiveness with a prototype and evaluations from real datasets.

Venue
CHI 2023
Volume
Extended Abstracts of the 2023 CHI Conference on Human Factors in Computing Systems
DOI
10.1145/3544549.3585714
PDF
https://dl.acm.org/doi/pdf/10.1145/3544549.3585714
Anthology ID
2023.chi-ea.403

Cite

@inproceedings{chan-etal-2023-detecting,
    title = {{Detecting Email Components with Constraints: Expressive and Extensible Models in Answer Set Programming}},
    author = {Gromit Yeuk-Yin Chan and Shunan Guo and Caroline Kim and Cole Connelly and Michelle Lee and Andrew Thomson and Eunyee Koh},
    booktitle = {Extended Abstracts of the 2023 CHI Conference on Human Factors in Computing Systems},
    isbn = {9781450394222},
    year = {2023},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3544549.3585714},
    url = {https://doi.org/10.1145/3544549.3585714},
    abstract = {Detecting structures and components in business emails is vital for editor software to convert third-party emails so that designers can edit them without needing to know how HTML works. In a production environment, the challenge is to make the model easy to be understood and maintained by different stakeholders. We propose detecting email components with a collection of constraints written in Answer Set Programming (ASP). Hard constraints can detect well-defined components like email layouts, and soft constraints can incorporate ML to detect custom components like buttons and titles in emails. Using constraints, developers can apply their domain knowledge to the model and express them in a concrete, extensible, and deterministic form. We demonstrate the effectiveness with a prototype and evaluations from real datasets.}
}