conllu.js: CoNLL-U format library for JavaScript

This is a placeholder for conllu.js library documentation, hopefully to follow soon.

For the time being, here is an example editable visualization generated from CoNLL-U formatted input that illustrates support for two "structured comments", visual-style and sentence-label.

# sentence-label A
# visual-style 1	bgColor:blue
# visual-style 1	fgColor:white
# visual-style 2 1 nsubj	color:blue
# visual-style 4 1 nsubj	labelArrow:triangle,10,3
1	They	they	PRON	PRN	Case=Nom|Num=Plur	2	nsubj	4:nsubj	_
2	buy	buy	VERB	VBP	Num=Plur|Per=3|Tense=Pres	0	root	_	_
3	and	and	CONJ	CC	_	2	cc	_	_
4	sell	sell	VERB	VBP	Num=Plur|Per=3|Tense=Pres	2	conj	_	_
5	books	book	NOUN	NNS	Num=Plur	2	dobj	4:dobj	_
6	.	.	PUNCT	.	_	2	punct	_	_

# sentence-label B
# visual-style arcs red
# visual-style nodes red
1	buy	buy	VERB	VBP	Num=Plur|Per=3|Tense=Pres	0	root	_	_
2	books	book	NOUN	NNS	Num=Plur	1	dobj	_	_

# sentence-label WIDE LABEL
1	buy	buy	VERB	VBP	Num=Plur|Per=3|Tense=Pres	0	root	_	_

Here are some more tests: tests.html

Here's a validating visualizer. Visualization:

Input (editable):

Log and validator output:

1 edit edit VERB VERB _ 0 root _ _ 2 this this NOUN NOUN _ 1 dobj _ _

Also, please see Universal Dependencies for an example of a project using the library.