1712n / dn-institute

Distributed Networks Institute
http://dn.institute/
The Unlicense
28 stars 69 forks source link

Articles plagiarism check implementation #451

Open kol3x opened 3 months ago

kol3x commented 3 months ago

Closes #424

Hi, I am starting this as draft request for now, because I still need to test the GitHub workflow script properly. I've never worked with one before, so it's ruff. The one I have now is work in progress.

However, the plagiarism-checker service is ready and working. Since Evgeny gave me a hint that this problem has a better solution than just using a paid third-party API, I started researching on how I might implement it otherwise. One old open-source library drew my attention, as it was using google search API to check text for plagiarism in the open web. I found that method better for given problem, but I didn't want to use a library that hasn't been updated for 10+ years, so I developed a little service that uses the same technic.

Additional costs with this method should be 0, since Google lets you make up to 100 queries a day for free. My service is implemented in a way, that it checks every sentence for a 100% match on the internet, while Crypto Attack Wiki article has less than 30 sentences on the average (Rough estimate). And since new articles are released not that often, we can have 2-3 free checks for a new article in a single day.

kol3x commented 3 months ago

I finished and tested the whole thing. These are the end results for different text inputs: image image

A little more on the implementation:

I am gonna work on a README later with instructions on setting up the service and adding all necessary secrets

Looking forward to hear some feedback on my implementation!

kol3x commented 3 months ago

@Lavriz review this please, whenever you are available

kol3x commented 2 months ago

Hi, @Lavriz

I resolved all the requested changes and added instructions on how to integrate the service and set up corresponding secrets.

Hope to hear back from you soon

kol3x commented 2 weeks ago