Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

fix spelling error and missing quote #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ trait ContentExtractor {
* @return
*/
def doTitleSplits(title: String, splitter: StringSplitter): String = {
var largetTextLen: Int = 0
var largestTextLen: Int = 0
var largeTextIndex: Int = 0
val titlePieces: Array[String] = splitter.split(title)
var i: Int = 0
while (i < titlePieces.length) {

val current: String = titlePieces(i)
if (current.length > largetTextLen) {
largetTextLen = current.length
if (current.length > largestTextLen) {
largestTextLen = current.length
largeTextIndex = i
}
i += 1
Expand Down Expand Up @@ -625,7 +625,7 @@ trait ContentExtractor {

private def debugNode(e: Element): String = {
val sb: StringBuilder = new StringBuilder
sb.append("GravityScore: '")
sb.append("'GravityScore: '")
sb.append(e.attr("gravityScore"))
sb.append("' paraNodeCount: '")
sb.append(e.attr("gravityNodes"))
Expand All @@ -635,4 +635,4 @@ trait ContentExtractor {
sb.append(e.attr("class"))
sb.toString()
}
}
}