Skip to main content
Mod Removes Wiki by Martin EnderMod
Post Merged (destination) from meta.codegolf.stackexchange.com/questions/1847/…
Post Merged (destination) from meta.codegolf.stackexchange.com/questions/336/…
added 342 characters in body; added 27 characters in body; edited body; deleted 2 characters in body
Source Link
Alexandru
  • 6.1k
  • 13
  • 5

Given a text, determine the language it is written in. The possible languages are: English, Danish, Romanian and Hungarian. You are not allowed read additional files (e.g. to train your program) so please encode any data in your program. The The shortest program wins.

Some examples of text ifin each language can be found at Project Gutenberg

You are required to include examples of runs on other text files exceptother than the ones provided here.

The input file name is given as a command line argument. Except the input text, you are not allowed read additional files (e.g. to train your program) so please encode any data in your program.

Your program must output on of the following words English, Danish, Romanian, Hungarian.

Examples

$ ./language pg2600.txt
English
$ ./langauge pg12167.txt
Danish
$ ./language 11756-0.txt
Romanian
$ ./language 30163-0.txt
Hungarian

Given a text, determine the language it is written in. The possible languages are: English, Danish, Romanian and Hungarian. You are not allowed read additional files (e.g. to train your program) so please encode any data in your program. The shortest program wins.

Some examples of text if each language can be found at Project Gutenberg

You are required to include examples of runs on other text files except the ones provided here.

Given a text, determine the language it is written in. The possible languages are: English, Danish, Romanian and Hungarian. The shortest program wins.

Some examples of text in each language can be found at Project Gutenberg

You are required to include examples of runs on text files other than the ones provided here.

The input file name is given as a command line argument. Except the input text, you are not allowed read additional files (e.g. to train your program) so please encode any data in your program.

Your program must output on of the following words English, Danish, Romanian, Hungarian.

Examples

$ ./language pg2600.txt
English
$ ./langauge pg12167.txt
Danish
$ ./language 11756-0.txt
Romanian
$ ./language 30163-0.txt
Hungarian
added 357 characters in body; added 5 characters in body
Source Link
Alexandru
  • 6.1k
  • 13
  • 5

""" GivenGiven a text, determine the language it is written in. The possible languages are: English, DutchDanish, Romanian and TurkishHungarian. You are not allowed to useread additional files (e.g. to train your program) so please encode any data in your program. The shortest program wins. """

I need a way to extractSome examples of text from random pages from Wikipedia so userif each language can test and prove their algorithmbe found at Project Gutenberg

You are required to include examples of runs on other text files except the ones provided here.

""" Given a text, determine the language it is written in. The possible languages are: English, Dutch, Romanian and Turkish. You are not allowed to use additional files to train your program so please encode any data in your program. The shortest program wins. """

I need a way to extract text from random pages from Wikipedia so user can test and prove their algorithm.

Given a text, determine the language it is written in. The possible languages are: English, Danish, Romanian and Hungarian. You are not allowed read additional files (e.g. to train your program) so please encode any data in your program. The shortest program wins.

Some examples of text if each language can be found at Project Gutenberg

You are required to include examples of runs on other text files except the ones provided here.

Source Link
Alexandru
  • 6.1k
  • 13
  • 5

""" Given a text, determine the language it is written in. The possible languages are: English, Dutch, Romanian and Turkish. You are not allowed to use additional files to train your program so please encode any data in your program. The shortest program wins. """

I need a way to extract text from random pages from Wikipedia so user can test and prove their algorithm.

Post Made Community Wiki by Alexandru