Page Content
API
render_text_to_html
Send POST request to https://api.matov.pro
and get text ready for web publishing⁠. The raw string is passed in the body of the request⁠.
https://api.matov.pro/typograph/processing/alpha/render_text_to_html
You can configure Typograph via sending parameters:
.../render_text_to_html?typography=true&autolinkify=true&linkprettify=true
In case of successful processing, you receive a response with a status of 200
and a ready-made line in the response body⁠.
<span class='ns'>Carlsen has called</span> <span class='ns'>for better</span> methods <span class='nh'>of detection</span> <span class='ns'>and added</span>⁠, “⁠<span class='nh'>I hope</span> that <span class='ns'>the truth</span> <span class='nh'>on this</span> matter <span class='ns'>comes out</span>⁠, <span class='ns'>whatever <span class='nh'>it may be</span></span>⁠.” <span class='ns'>But the chess</span> world <span class='ns'>may discover</span> that machine intelligence <span class='nh'>or tech</span> engines <span class='nh'>don’t</span> solve <span class='ns'>its new problems</span> <span class='ns'>any more</span> efficiently than an age-old human practice: <span class='ns'>the honor code</span>⁠, <span class='ns'>the development</span> <span class='nh'>of conscience</span>⁠, <span class='ns'>which solves</span> problems before <span class='ns'>they begin</span>⁠. <span class='ns'><span class='nh'>As the</span> Russian</span> chess grandmaster <span class='bold'>Alexander Grischuck</span> once remarked about <span class='ns'>the explosion</span> <span class='nh'>of chess</span> online <span class='ns'>and the proliferation</span> <span class='nh'>of tools</span> with which <span class='nh'>to cheat</span>⁠, ultimately, “Everything rests <span class='nh'>on decency</span>⁠.”
string_to_object
Typograph is based on a natural language processing engine⁠. This functionality is available via API⁠:
https://api.matov.pro/nlp/processing/alpha/string_to_object
The method exposes the string object: sentences in their natural form⁠, tokenized sentences with tokens represented as words⁠, tokens and molecules⁠:
{
"string_natural_hash": "ff8dfd0d0021ba74d9b48e9bbc7f6cc07eb6681f",
"string_natural":
"In recent years, the rapper turned designer, whose legal name is now Ye, has suggested that 400 years of chattel slavery was “a choice” and sported the confederate flag as a fashion statement. He defended the likes of Bill Cosby and R. Kelly; aligned himself with controversial figures like DaBaby, Marilyn Manson, and former president Donald Trump; and spoke out in support of the MAGA movement during the height of tensions in the country.",
"sentences_natural": [
"In recent years, the rapper turned designer, whose legal name is now Ye, has suggested that 400 years of chattel slavery was “a choice” and sported the confederate flag as a fashion statement.",
"He defended the likes of Bill Cosby and R. Kelly; aligned himself with controversial figures like DaBaby, Marilyn Manson, and former president Donald Trump; and spoke out in support of the MAGA movement during the height of tensions in the country."
],
"sentences_ocw": [
"Stubqqqqqqqqsopq stubqqqqqqqqtopq stubqqqqqqqquopq, stubqqqqqqqqvopq stubqqqqqqqqwopq stubqqqqqqqqxopq stubqqqqqqqqyopq, stubqqqqqqqqzopq stubqqqqqqqrqopq stubqqqqqqqrropq stubqqqqqqqrsopq stubqqqqqqqrtopq Stubqqqqqqqruopq, stubqqqqqqqrvopq stubqqqqqqqrwopq stubqqqqqqqrxopq Stubqqqqqqqryopq stubqqqqqqqrzopq stubqqqqqqqsqopq stubqqqqqqqsropq stubqqqqqqqssopq stubqqqqqqqstopq “stubqqqqqqqsuopq stubqqqqqqqsvopq” stubqqqqqqqswopq stubqqqqqqqsxopq stubqqqqqqqsyopq stubqqqqqqqszopq stubqqqqqqqtqopq stubqqqqqqqtropq stubqqqqqqqtsopq stubqqqqqqqttopq stubqqqqqqqtuopq.",
"Stubqqqqqqqtxopq stubqqqqqqqtyopq stubqqqqqqqtzopq stubqqqqqqquqopq stubqqqqqqquropq Stubqqqqqqqusopq Stubqqqqqqqutopq stubqqqqqqquuopq Stubqqqqqqquvopq; stubqqqqqqquwopq stubqqqqqqquxopq stubqqqqqqquyopq stubqqqqqqquzopq stubqqqqqqqvqopq stubqqqqqqqvropq Stubqqqqqqqvsopq, Stubqqqqqqqvtopq Stubqqqqqqqvuopq, stubqqqqqqqvvopq stubqqqqqqqvwopq stubqqqqqqqvxopq Stubqqqqqqqvyopq Stubqqqqqqqvzopq; stubqqqqqqqwqopq stubqqqqqqqwropq stubqqqqqqqwsopq stubqqqqqqqwtopq stubqqqqqqqwuopq stubqqqqqqqwvopq stubqqqqqqqwwopq Stubqqqqqqqwxopq stubqqqqqqqwyopq stubqqqqqqqwzopq stubqqqqqqqxqopq stubqqqqqqqxropq stubqqqqqqqxsopq stubqqqqqqqxtopq stubqqqqqqqxuopq stubqqqqqqqxvopq stubqqqqqqqxwopq."
],
"sentences_tokenized": [
"=%000000002%= =%000000003%= =%000000004%=, =%000000005%= =%000000006%= =%000000007%= =%000000008%=, =%000000009%= =%000000010%= =%000000011%= =%000000012%= =%000000013%= =%000000014%=, =%000000015%= =%000000016%= =%000000017%= =%000000018%= =%000000019%= =%000000020%= =%000000021%= =%000000022%= =%000000023%= “=%000000024%= =%000000025%=” =%000000026%= =%000000027%= =%000000028%= =%000000029%= =%000000030%= =%000000031%= =%000000032%= =%000000033%= =%000000034%=.",
"=%000000037%= =%000000038%= =%000000039%= =%000000040%= =%000000041%= =%000000042%= =%000000043%= =%000000044%= =%000000045%=; =%000000046%= =%000000047%= =%000000048%= =%000000049%= =%000000050%= =%000000051%= =%000000052%=, =%000000053%= =%000000054%=, =%000000055%= =%000000056%= =%000000057%= =%000000058%= =%000000059%=; =%000000060%= =%000000061%= =%000000062%= =%000000063%= =%000000064%= =%000000065%= =%000000066%= =%000000067%= =%000000068%= =%000000069%= =%000000070%= =%000000071%= =%000000072%= =%000000073%= =%000000074%= =%000000075%= =%000000076%=."
],
"tokens": {
"000000002": "In",
"000000003": "recent",
"000000004": "years",
"000000005": "the",
"000000006": "rapper",
...
},
"string_tokenized":
"=%000000002%= =%000000003%= =%000000004%=, =%000000005%= =%000000006%= =%000000007%= =%000000008%=, =%000000009%= =%000000010%= =%000000011%= =%000000012%= =%000000013%= =%000000014%=, =%000000015%= =%000000016%= =%000000017%= =%000000018%= =%000000019%= =%000000020%= =%000000021%= =%000000022%= =%000000023%= “=%000000024%= =%000000025%=” =%000000026%= =%000000027%= =%000000028%= =%000000029%= =%000000030%= =%000000031%= =%000000032%= =%000000033%= =%000000034%=. =%000000037%= =%000000038%= =%000000039%= =%000000040%= =%000000041%= =%000000042%= =%000000043%= =%000000044%= =%000000045%=; =%000000046%= =%000000047%= =%000000048%= =%000000049%= =%000000050%= =%000000051%= =%000000052%=, =%000000053%= =%000000054%=, =%000000055%= =%000000056%= =%000000057%= =%000000058%= =%000000059%=; =%000000060%= =%000000061%= =%000000062%= =%000000063%= =%000000064%= =%000000065%= =%000000066%= =%000000067%= =%000000068%= =%000000069%= =%000000070%= =%000000071%= =%000000072%= =%000000073%= =%000000074%= =%000000075%= =%000000076%=.",
"string_ocw":
"Stubqqqqqqqqsopq stubqqqqqqqqtopq stubqqqqqqqquopq, stubqqqqqqqqvopq stubqqqqqqqqwopq stubqqqqqqqqxopq stubqqqqqqqqyopq, stubqqqqqqqqzopq stubqqqqqqqrqopq stubqqqqqqqrropq stubqqqqqqqrsopq stubqqqqqqqrtopq Stubqqqqqqqruopq, stubqqqqqqqrvopq stubqqqqqqqrwopq stubqqqqqqqrxopq Stubqqqqqqqryopq stubqqqqqqqrzopq stubqqqqqqqsqopq stubqqqqqqqsropq stubqqqqqqqssopq stubqqqqqqqstopq “stubqqqqqqqsuopq stubqqqqqqqsvopq” stubqqqqqqqswopq stubqqqqqqqsxopq stubqqqqqqqsyopq stubqqqqqqqszopq stubqqqqqqqtqopq stubqqqqqqqtropq stubqqqqqqqtsopq stubqqqqqqqttopq stubqqqqqqqtuopq. Stubqqqqqqqtxopq stubqqqqqqqtyopq stubqqqqqqqtzopq stubqqqqqqquqopq stubqqqqqqquropq Stubqqqqqqqusopq Stubqqqqqqqutopq stubqqqqqqquuopq Stubqqqqqqquvopq; stubqqqqqqquwopq stubqqqqqqquxopq stubqqqqqqquyopq stubqqqqqqquzopq stubqqqqqqqvqopq stubqqqqqqqvropq Stubqqqqqqqvsopq, Stubqqqqqqqvtopq Stubqqqqqqqvuopq, stubqqqqqqqvvopq stubqqqqqqqvwopq stubqqqqqqqvxopq Stubqqqqqqqvyopq Stubqqqqqqqvzopq; stubqqqqqqqwqopq stubqqqqqqqwropq stubqqqqqqqwsopq stubqqqqqqqwtopq stubqqqqqqqwuopq stubqqqqqqqwvopq stubqqqqqqqwwopq Stubqqqqqqqwxopq stubqqqqqqqwyopq stubqqqqqqqwzopq stubqqqqqqqxqopq stubqqqqqqqxropq stubqqqqqqqxsopq stubqqqqqqqxtopq stubqqqqqqqxuopq stubqqqqqqqxvopq stubqqqqqqqxwopq."
}