Click here to Skip to main content
15,889,034 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am looking for some js library which can take a paragraph or chat conversation as input and give the heading out of that given paragraph, its like if I give any para(100 lines) that library should give me the Heading, heading here means the topic of conversion.

for example - That was a great match, India could've won that if there were no rain, Virat was in great touch that day

The Heading | Topic - The Conversation is About INDIA's cricket match

I hope everyone is getting my problem statement and what I willing to do. Is there any library in javascript or maybe in php available to achieve this functionality ? please suggest me something !

Thanks in advance

What I have tried:

I didn't found anything yet, please help me !
Posted
Updated 30-Jun-21 22:30pm
Comments
Richard MacCutchan 1-Jul-21 4:20am    
No, because 'heading' does not have a fixed universal meaning. A heading in a Word document is not the same as a heading in a Java source file, or any other type of document.

1 solution

No - as Richard has said, there is no universal meaning or placement for a "Heading".

There are two things that might help you though: Regular expressions - JavaScript | MDN[^] and Html Agility pack | Html Agility Pack[^] - but that'll have to run in your server side code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900