Giter VIP home page Giter VIP logo

bunsetsu.vim's Introduction

Bunsetsu.vim

Bunsetsu (文節) is a Japanese word for a sentence.
Bunsetsu.vim is はTinysegmenter 等の分かち書きのライブラリを用いて、入力されたテキストを分かち書きするプラグインです。

必須条件

Kensaku は denops プラグインとして作られているため Denovim-denops/denops.vim がインストールされている必要があります。

インストール

Deno をインストール後 vim-plug などを利用して以下の様にインストールします。

Plug 'vim-denops/denops.vim'
Plug 'ryoppippi/bunsetsu.vim'

もしくはlazy.nvimを用いるならば

return {
  'ryoppippi.bunsetsu.vim',
  dependencies = {
    'vim-denops/denops.vim',
  }
}

利用方法

Plugins with Bunsetsu.vim

Check at bunsetsu-vim github topic

TypeScript からの利用 (denops)

-- 追記中

Vim script からの利用

function! Tokenize(value) abort
  let @/ = a:value
  normal! n
endfunction

call Tokenize(bunsetsu#tokenize('文節でくぎろう',&l:iskeyword))

TODO

  • テストの追加
  • TypeScript からの利用の追記
  • Kuromoji追加

Inspirations

License

MIT

Author

Ryotaro "Justin" Kimura (a.k.a. ryoppippi)

bunsetsu.vim's People

Contributors

ryoppippi avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bunsetsu.vim's Issues

kuromoji対応

分かち書きの精度的にもkuromoji対応したい
しかし、現在kuromojiがdenoで動かない
従って、まずkuromojiをdenoに対応させる必要がある

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.