Using AI for Automated Tasks
When I came across Nguyễn Đăng Liêm’s “Four-Syllable Idiomatic Expressions In Vietnamese,” I knew I wanted to create a Vietnamese typographic sample out of it. The study was published 56 years ago—8 years before I was even born. The copy was 66 pages in a non-selectable-text PDF. Mr. Nguyễn selected 825 four-syllable idiomatic expressions and each word with Vietnamese diacritics was marked with a black pen by hand.
Turning a PDF into HTML without any automation would be too time consuming; therefore, I turned to AI for help. I have been resistant to using AI, but I wanted to experiment with large language models for this project.
Fortunately George Mason University has an enterprise AI platform with 6 different agents: 2 from OpenAI, 2 from Anthropic, and 2 from Meta. My first attempt was using GPT-5.4 to convert the PDF file into semantic HTML. I let it run in the background. Maybe an hour or so later, GPT-5.4 gave up. It exceeded its limits. I switched to Claude Sonnet 4.6, and it hit the same limit.
I went back to GPT-5.4 and asked it to convert PDF to text instead. GPT-5.4 was able to give me the text file, but all the Vietnamese words were mixing with unicodes. It was just a mess. I asked Claude Sonnet 4.6 to do the same and it gave me clean text without Vietnamese diacritics. We were getting somewhere. I then asked Claude Sonnet 4.6 to turn text into semantic HTML and convert dumb quotes into smart quotes. Claude Sonnet 4.6 gave me back a page in HTML and CSS with smart quotes.
The HTML markups looked pretty clean too. Though I had to do some find and replace to create the HTML markups I wanted. I removed all of its CSS and wrote my own to design the page that I wanted. After choosing the typefaces, selecting the colors, and designing the layout, I went back to the HTML file to retype Vietnamese diacritics for each word. Even though I had learned so much about spelling and grammar doing that, I got tired after about 50 expressions. I still had about 775 lines to retype.
I uploaded the HTML file I was working on and asked Claude Sonnet 4.6 to put the diacritics on Vietnamese words. To my surprise, it did a decent job. I went back to check every line and 95% of the diacritics were correct. I was impressed.
Even though I don’t want to use AI in my web design process, I have to admit that AI can be helpful with automated tasks. I still do the design myself. Check out “Tứ Tuyệt.”