ReasonML Github Language Detected as OCaml


#1

I know it’s not a big deal but I was doing some Github code searching for ReasonML examples and patterns (which is pretty awesome) and noticed that it’s being detected as OCaml.

Technically, in github/linguist it is being detected as Reason but being “grouped” and branded as OCaml.

https://github.com/github/linguist/issues/3949

It would be a 2 line PR to linguist’s languages.yml to remove the grouping and add the red branding color but not sure if that’s what the community leaders would want… since Reason is an alternative syntax of OCaml anyway. I feel like it should be properly branded (not sure as “Reason” or the more google-able “ReasonML”) but not my call.

https://github.com/github/linguist/blob/d4c2d83af9f576aacdd97d58796d2a22fa90def4/lib/linguist/languages.yml#L3813


#2

I think @chenglou did this intentionally, but he can probably comment more to that.


#3

I think it’s the best outcome. Sometimes language is detected as some completely random, C++ for example.