Global

Members

globalText

contains the loaded text from a file or a Wikipedia article
Source:

globalTextArray

contains the words of the globalText
Source:

NodeCountMetric

the object for the node-count metric
Source:

NodeDegreeMetric

the object for the node-degree metric
Source:

stopwords

contains a set of frequent English words which don't carry much information in a phrase-net
Source:

Methods

compareArrays(a, b)

compares two arrays of strings and returns true if they contain the same elements
Parameters:
Name Type Description
a array The first array
b array The second array
Source:
Returns:
true if a and b contain the same elements

compareNeighborhoods(n1, n2)

compares two neighborhoods and returns true if they contain the same in-node and out-nodes
Parameters:
Name Type Description
n1 object The first neighborhood
n2 object The second neighborhood
Source:
Returns:
true if n1 and n2 contain the same in-node and out-nodes

openFileDialog()

opens the dialog for the file selection
Source:
Requires:
  • module:jquery-ui

openInfoDialog(div_id, width, height)

opens an info-dialog for the specified div-id
Parameters:
Name Type Description
div_id string The id of the info div-container
width number The width of the info-prompt
height number The height of the info-prompt
Source:
Requires:
  • module:jquery-ui

openWikipediaDialog()

opens the dialog for the Wikipedia-article selection
Source:
Requires:
  • module:jquery-ui

parseFile(file)

reads the given text file into a string and stores it in globalText. The text is also split into words and stored in the globalTextArray
Parameters:
Name Type Description
file File A text file
Source:

parseText(reg_all)

generates a graph from the globalTextArray and the specified phrase from the main interface
Parameters:
Name Type Description
reg_all string A string containing the regular expression used to build the phrase net
Source:
Returns:
A graph object containing nodes and links

readWikipediaArticle(url)

Reads the article of the specified Wikipedia-URL
Parameters:
Name Type Description
url string A url to a Wikipedia article
Source: