Back to LanguageTool Homepage - Privacy - Imprint

LanguageTool Node.JS wrapper (OUT NOW)


(Maciej Pędzich) #1

Hi guys!

In my previous post, I made a request for Node.JS wrapper for LanguageTool. Well, I didn’t get any response, so I decided to make this wrapper myself.

Well, so far it has the very basic functionality, but it’ll get new features very soon. This wrapper isn’t avalible on Github yet, but you can already get it from npmjs.com.

So guys, let me know what you think about this idea, and what would you add/improve in the next updates.

Thank you,
P0le


Node.js wrapper proposition (OUTDATED)
(Daniel Naber) #2

Thanks! Does this rely on the public LanguageTool HTTP API? If so, I suggest you link http://wiki.languagetool.org/public-http-api so users are aware of the limitations.


(Maciej Pędzich) #3

Yes, it does rely on HTTP API! I’ll make sure to link to that as well! Also, could you link to my wrapper in your API documentation? I’ll be glad, if you do that :smile:


(Daniel Naber) #4

Let me know when it’s on GitHub, I can link it then.


(Maciej Pędzich) #5

Alright… maybe it’s time to do it :smiley: Also, I’m adding a small note about HTTP API. If you wanted me to change anything, just let me know…


(Maciej Pędzich) #6

There it is: https://github.com/P0le/languagetool-api-wrapper


(Daniel Naber) #7

Thanks, I have linked it at http://wiki.languagetool.org/public-http-api - could you also add a LICENSE file to your repo?


(Maciej Pędzich) #8

Sure thing, I’ll add it in a moment…
Alright, LICENSE has been added to repository!


(Tiago F. Santos) #9

@P0le Many thanks for your contribution. Keep up the great work!

@dnaber Since you are linking to this wrapper, I am not sure you are aware it is partially closed source, since the npm files are close source and the github repo has this:

NOTE: This wrapper utilizes request package, that is required for languagetool-api to work properly. Github repository doesn’t provide it, but package on npmjs.com does.

@P0le Is there a compilable wrapper, or a link to the wrapper’s source?

PS- I have seen now this:

index.js Add files via upload 25 minutes ago
package.json Add files via upload 25 minutes ago

Are those the source to the installer on npm?


(Daniel Naber) #10

The dependency request seems to be under Apache license: https://www.npmjs.com/package/request

@P0le The GitHub page now mentions a BSD license, while npmjs.com mentions ISC?


(Maciej Pędzich) #11

According to what I read about ISC, it’s pretty much simillar to BSD 2-clause, with no major differences at all… I’ll change package.json to say BSD tho, just to clarify all the stuff…


(Maciej Pędzich) #12

index.js is main file of package, all the functions, like check() or codes() are exported from it.
Also, you don’t compile JS :stuck_out_tongue: