Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you add support for more languages? #4

Open
gnu-user opened this issue Jan 18, 2017 · 25 comments
Open

Can you add support for more languages? #4

gnu-user opened this issue Jan 18, 2017 · 25 comments

Comments

@gnu-user
Copy link

gnu-user commented Jan 18, 2017

Love your project, very interesting read! Would it be possible for you to add support for additional languages such as Lisp, SQL, Clojure, Rust, etc?

Thanks!

@mbStavola
Copy link

Kotlin and Rust would be cool!

@dooglio
Copy link

dooglio commented Jan 19, 2017

How about CMake?

@chrisetheridge
Copy link

Clojure / ClojureScript would be awesome!

anvaka added a commit that referenced this issue Jan 19, 2017
Should partially address #4
anvaka added a commit that referenced this issue Jan 19, 2017
Another partial fix for #4
@anvaka
Copy link
Owner

anvaka commented Jan 19, 2017

Absolutely!

I added sql (all files with .sql extension): https://anvaka.github.io/common-words/#?lang=sql
And rust (all files with .rs extension): https://anvaka.github.io/common-words/#?lang=rust

What would be the most accurate file extension for Clojure/Lisp/Kotlin/CMake?

@quangdatv
Copy link

How about Swift and Obj-C?

@chrisetheridge
Copy link

Clojure / ClojureScript files all use the extension of .clj and .cljs respectively.

@rmflight
Copy link

How about .R and .r for the R language??

@gnu-user
Copy link
Author

gnu-user commented Jan 19, 2017

@anvaka And if you could also add Common Lisp while you're adding Clojure I would really appreciate it! The extensions for Common Lisp are most frequently .lisp or .lsp .

anvaka added a commit that referenced this issue Jan 20, 2017
As requested in #4
anvaka added a commit that referenced this issue Jan 20, 2017
This should address rest of the
#4
@anvaka
Copy link
Owner

anvaka commented Jan 20, 2017

@rmflight I had R before. Unfortunately visualizations were not usable for R - they were made mostly from numbers. That's because I can only differentiate languages by file extension. As it turned out .r was also used for resource files, which looked mostly like an assembly language (thus the numbers)

@anvaka
Copy link
Owner

anvaka commented Jan 20, 2017

Added:

Please let me know if something doesn't make sense or is missing

@dooglio
Copy link

dooglio commented Jan 20, 2017

For CMake, I love that you made it in the shape of the Kitware logo!

@gnu-user
Copy link
Author

gnu-user commented Jan 20, 2017

Thanks @anvaka this looks great! While on functional languages you could also try adding Haskell, the file extension most commonly used is .hs or .lhs also in terms of rendering the word cloud Haskell has a great logo.

You can find a high resolution version of the logo at the following URL: https://upload.wikimedia.org/wikipedia/commons/thumb/1/1c/Haskell-Logo.svg/2000px-Haskell-Logo.svg.png

@derekbrown
Copy link

Requesting Elixir.

@anvaka
Copy link
Owner

anvaka commented Jan 20, 2017

Added both:

anvaka added a commit that referenced this issue Jan 20, 2017
Continuing #4
anvaka added a commit that referenced this issue Jan 20, 2017
Continuing thread from #4
@ZevEisenberg
Copy link

If you add Objective-C, keep in mind that .h is a header format shared across multiple languages, and .m is shared with Matlab (I think). You might need more advanced heuristics to figure out what language a file is. There may be some good language detection in cloc that you can use for inspiration.

@ForNeVeR
Copy link

That's very nice! Could you please add support for F#? .fs and .fsi are the extensions.

anvaka added a commit that referenced this issue Jan 22, 2017
Only .m and .mm extensions are used;

#4
anvaka added a commit that referenced this issue Jan 22, 2017
Using .fs and .fsi extensions.

Note: .fs does noe uniquely identify F#. It also could be used for
fragment shaders in GLSl. FilterScript and Forth also use .fs as their extension.
Results might be skewed.

#4
@anvaka
Copy link
Owner

anvaka commented Jan 22, 2017

@ZevEisenberg yes, unfortunately I don't have anything advanced yet. I guess one could use user defined function which would classify source code text more accurately...

For now I'm just considering .m and .mm as objective c/c++ code.

@ForNeVeR the same is true about .fs extension - I know Forth, GLSL, and Filterscript are using it. Please let me know if you see anything suspicious...

@joneshf
Copy link

joneshf commented Jan 24, 2017

This is great! Would you be up for adding PureScript (.purs) and elm (.elm)?

@anvaka
Copy link
Owner

anvaka commented Jan 24, 2017

Added

anvaka added a commit that referenced this issue Jan 24, 2017
@anvaka
Copy link
Owner

anvaka commented Jan 25, 2017

@rmflight I added R language. I used case sensitive .R extension and results seems better than for .r (which was mixed with resource files). Please let me know if something doesn't look right:

https://anvaka.github.io/common-words/#?lang=r

@anvaka
Copy link
Owner

anvaka commented Jan 25, 2017

Erlang is here

@rmflight
Copy link

@anvaka That actually looks like it is capturing the relevant semantics of the language! Thank you!

@bdkosher
Copy link

Awesome visualizer! I'd like to request the addition of Groovy (.groovy).

The logo is quite busy,
Groovy logo
but there's a simplified version used as an icon for their console.
Groovy Console icon

@anvaka
Copy link
Owner

anvaka commented Jan 29, 2017

@bdkosher here it is

anvaka added a commit that referenced this issue Jan 29, 2017
As requested here #4
@nadako
Copy link

nadako commented Nov 13, 2020

How about Haxe (.hx)? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests