andri-ch / gotoword

vim plugin that gives users the possibility to write and access documentation about the word or expr. under cursor
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Extract context automatically from a line of text, a paragraph and so on #11

Open andri-ch opened 9 years ago

andri-ch commented 9 years ago

it should be able to extract context from a line of text and then incrementally extend to a paragraph(3 lines - one above, one below, 5 lines - 2 above, 2 below). it could search around the word under the cursor (left, right, line above, line below) to try and extract the context. NLTK? It should also be able to extract context from a selection (what about a range??!)