NameLock
This is a submission for the Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle The banner is already printed when the shop notices. The customer wrote Aadhya, with two a's, not Adya. The sheet says Adya. That sheet gets thrown away, and the shop prints it again. A chat tool does this on its own. It "fixes" a spelling. For a flex and wedding shop, that fix is the mistake. So I built…
NameLock is an application that helps a print shop avoid reprinting banners due to spelling errors in customer names. When a customer orders a banner with a name, for example "Aadhya" instead of "Adya", the print shop prints the banner anyway. This results in a waste of time and resources, as they have to reprint the banner with the correct spelling. To solve this problem, NameLock was created.
The program uses a Gemma model to draft the banner line from a WhatsApp note sent by the customer. After drafting the banner line, a plain Python check is performed to verify if any changes were made to the customer's name. If a change is detected, the print button is disabled and a message is displayed stating "Do not print". The customer can then click a single button to restore the original spelling of the name, and the print button will become active once again.
NameLock has several features that help prevent unwanted reprints. It blocks names that were not mentioned in the customer's message, names missing from the banner, and names that are not in the exact format as written by the customer. The tool also considers accents, such as distinguishing between "José" and "Jose". It will not print a changed name, nor will it merge close names silently.
The application keeps track of the approved spellings and saves them for future reference. If a similar spelling issue arises, the shop will ask the customer to confirm the spelling before proceeding. The final output is a print sheet that displays the proof, checked names, and the original banner with a yellow banner fitting the text.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to