julienp17 / CPool_rush2

Automatically guesses the language in which a text is written

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rush 2

C Pool

Automatically guesses the language in which a text is written (only English, French, German, and Spanish are considered), and print the occurence of the given chars in the string

1 day, 2 students, made with Stanislas Singamy

The longer the string, the better the results

Usage

./rush2 STRING [CHAR]...

Example

Example

Take a look at this Wikipedia page about letters frequencies to understand how the program is able to deduce the language.

Grade

GRADE

This was my favorite project to do, even though I got zero :(

My solution was to read from a csv file containing each letter frequency for the 4 languages, unfortunately it was forbidden to read from a file for this project

About

Automatically guesses the language in which a text is written


Languages

Language:C 89.7%Language:Makefile 10.3%