r/C_Programming • u/nitotm • Jun 14 '26
Project Efficient language detector in C. Very fast and accurate. Looking for feedback.
I've been working on ELD-C, an open-source natural language detector written in C. It detects 60 languages and is available as a Python package (pip install eldc), a shared library (for use from PHP, Go, Rust, Java, JS/TS, Ruby, .NET), or a command-line executable.
This is my first compiled software, and I am looking for some general feedback; I just uploaded it yesterday.
20
Upvotes
•
u/AutoModerator Jun 14 '26
Hi /u/nitotm,
Your submission in r/C_Programming was filtered because it links to a git project.
You must edit the submission or respond to this comment with an explanation about how AI was involved in the creation of your project.
While AI-generated code is not disallowed, low-effort "slop" projects may be removed and it's likely that other users push back strongly on substantially AI-generated projects.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
6
u/burlingk Jun 14 '26
It looks like you basically started with the python project and are converting it function by function? I notice the package initialization files are still there. Don't forget to remove them from the final project.
1
u/shubham_devNow Jun 25 '26
Nice work, especially for a first compiled project. Performance-focused language detection is always interesting, and having bindings for multiple languages makes it much easier to integrate into different projects.
One thing I've found useful when testing language detection models is comparing outputs across different tools with short snippets, mixed-language text, and edge cases. I sometimes use FileReadyNow's Language Detector as a quick reference for those kinds of checks since it's browser-based and doesn't require any setup. It might be useful for validating results while you're collecting feedback.
Curious how ELD-C performs on very short inputs (2–5 words) or code-switched text.