Analyze Github Readme

No algorithm description given

0. TL; DR This is an algorithm for analyzing GitHub readmes. It also makes recommendations for improving your project readme. 1. Introduction Creating good readmes can be really challenging. This is especially true given the fact that there's no official standard to follow. One approach for solving this problem could be to go through the top starred repositories on github and find common features in each of them. Going through hundreds of repositories can be time consuming, slow process. This algorithm uses machine learning models to learn from the 1000 starred repositories for the top 10 programming languages (that has the most repositories) on Github. It gives your project readme a score between 1-10, and makes recommendations to make your readme more similar to the top readmes on GitHub. Input: (Required): A github project URL. Output: Scoring for the given readme. Recommended Changes. 2. Scoring The algorithm scores 5 distinct features for every given project readme file. These features are: Titles and Headers (Heading Tags) Text Content (Paragraphs) Number of Code Snippets (Pre Tags) Number of Images and Badges (Img Tags) Total length of readme Each feature is scored an integer value starting from 1 to 10. The scoring is done by a regression model that is pre-selected for each feature. Models are selected based on their accuracy rates. 3. Recommendations The algorithm recommends changes to make in your features for improving the overall score of your readme. For titles, headers and text based content it makes insertion and deletion recommendation for words. For all of the other features, it makes recommendations telling you how much you should increase or decrease your numerical features. For example if it says incease by 5 for pre, that means you should probably add 5 more code snippets to your repository. 4. Examples Example 1. Parameter 1: A github readme {
 "repo": ""
} Output: {
 "score": {
 "pre": 8,
 "header": 7,
 "length": 5,
 "paragraph": 5,
 "img": 5
 "recommendation": {
 "pre": [{"operation": "increase", "value": 8}],
 "header": [
 {"operation": "insert", "value": "featur"},
 {"operation": "insert", "value": "overview"},
 {"operation": "insert", "value": "code"},
 {"operation": "delete", "value": "instal"},
 {"operation": "insert", "value": "develop"},
 {"operation": "insert", "value": "author"},
 {"operation": "insert", "value": "support"},
 {"operation": "insert", "value": "configur"},
 {"operation": "insert", "value": "note"},
 {"operation": "insert", "value": "start"}
 "length": [{"operation": "decrease", "value": 3426}],
 "paragraph": [
 {"operation": "insert", "value": "code"},
 {"operation": "insert", "value": "queri"},
 {"operation": "insert", "value": "prefix"},
 {"operation": "insert", "value": "implement"},
 {"operation": "insert", "value": "profil"},
 {"operation": "insert", "value": "depend"},
 {"operation": "insert", "value": "send"},
 {"operation": "insert", "value": "easiest"},
 {"operation": "insert", "value": "program"},
 {"operation": "insert", "value": "merchant"}
 "img": []

(no tags)

Cost Breakdown

0 cr
royalty per call
1 cr
usage per second
avg duration

Cost Calculator

API call duration (sec)
API calls
Estimated cost
per calls
for large volume discounts
For additional details on how pricing works, see Algorithmia pricing.

Internet access

This algorithm has Internet access. This is necessary for algorithms that rely on external services, however it also implies that this algorithm is able to send your input data outside of the Algorithmia platform.

To understand more about how algorithm permissions work, see the permissions documentation.

1. Type your input

2. See the result

Running algorithm...

3. Use this algorithm

curl -X POST -d '{{input | formatInput:"curl"}}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY'
View cURL Docs
algo auth
algo run algo://nlp/AnalyzeGithubReadme/0.1.13 -d '{{input | formatInput:"cli"}}'
View CLI Docs
import (
  algorithmia ""

input := {{input | formatInput:"go"}}

var client = algorithmia.NewClient("YOUR_API_KEY", "")
algo, _ := client.Algo("algo://nlp/AnalyzeGithubReadme/0.1.13")
resp, _ := algo.Pipe(input)
response := resp.(*algorithmia.AlgoResponse)
View Go Docs
import com.algorithmia.*;
import com.algorithmia.algo.*;

String input = "{{input | formatInput:"java"}}";
AlgorithmiaClient client = Algorithmia.client("YOUR_API_KEY");
Algorithm algo = client.algo("algo://nlp/AnalyzeGithubReadme/0.1.13");
AlgoResponse result = algo.pipeJson(input);
View Java Docs
import com.algorithmia._
import com.algorithmia.algo._

val input = {{input | formatInput:"scala"}}
val client = Algorithmia.client("YOUR_API_KEY")
val algo = client.algo("algo://nlp/AnalyzeGithubReadme/0.1.13")
val result = algo.pipeJson(input)
View Scala Docs
var input = {{input | formatInput:"javascript"}};
           .then(function(output) {
View Javascript Docs
var input = {{input | formatInput:"javascript"}};
           .then(function(response) {
View NodeJS Docs
import Algorithmia

input = {{input | formatInput:"python"}}
client = Algorithmia.client('YOUR_API_KEY')
algo = client.algo('nlp/AnalyzeGithubReadme/0.1.13')
print algo.pipe(input)
View Python Docs

input <- {{input | formatInput:"r"}}
client <- getAlgorithmiaClient("YOUR_API_KEY")
algo <- client$algo("nlp/AnalyzeGithubReadme/0.1.13")
result <- algo$pipe(input)$result
View R Docs
require 'algorithmia'

input = {{input | formatInput:"ruby"}}
client = Algorithmia.client('YOUR_API_KEY')
algo = client.algo('nlp/AnalyzeGithubReadme/0.1.13')
puts algo.pipe(input).result
View Ruby Docs
use algorithmia::*;

let input = {{input | formatInput:"rust"}};
let client = Algorithmia::client("YOUR_API_KEY");
let algo = client.algo("nlp/AnalyzeGithubReadme/0.1.13");
let response = algo.pipe(input);
View Rust Docs
import Algorithmia

let input = "{{input | formatInput:"swift"}}";
let client = Algorithmia.client(simpleKey: "YOUR_API_KEY")
let algo = client.algo(algoUri: "nlp/AnalyzeGithubReadme/0.1.13") { resp, error in
View Swift Docs
  • {{comment.username}}