diff --git a/README.md b/README.md index 598efe0..5e022cf 100644 --- a/README.md +++ b/README.md @@ -25,11 +25,25 @@ lang, _ = GetLanguageByContent("foo.m", "") fmt.Println(lang) // result: Matlab -lang, _ = GetLanguageByContent("bar.m", "") +lang, _ = GetLanguageByContent("bar.m", "") fmt.Println(lang) // result: Objective-C + +// all strategies together +lang := enry.GetLanguage("foo.cpp", "") ``` +Developmemt +----------- +*enry* re-uses parts of original [linguist](https://github.com/github/linguist) especially data in `languages.yml` to generate internal data structures. In oreder to update to latest upstream run + + make clean code-generate + +To run the tests + + make test + + Why Enry? --------- In the movie [My Fair Lady](https://en.wikipedia.org/wiki/My_Fair_Lady), [Professor Henry Higgins](http://www.imdb.com/character/ch0011719/?ref_=tt_cl_t2) is one of the main characters. Henry is a linguist and at the very beginning of the movie enjoys guessing the nationality of people based on their accent.