App::Greple::subst::desumasu - Japanese DESU/MASU dictionary for App::Greple::subst
greple -Msubst::desumasu --dearu --subst --all file greple -Msubst::desumasu --dearu --diff file greple -Msubst::desumasu --dearu --replace file
greple -Msubst module based on desumasu-converter.
This is a simple checker/converter module for the Japanese writing styles so called DESU/MASU (ですます調: 敬体) and DEARU (である調: 常 体). This is not my own idea and the dictionary is based on https://github.com/kssfilo/desumasu-converter.
See article https://kanasys.com/tech/722 for detail.
Convert DESU/MASU to DEARU style.
DESU (です) and MASU (ます) are sometimes followed by NE (ね) in an open situation, and that NE (ね) is removed from the converted result by default. Option with -n keeps the NE (ね), and option with -N igonores it.
Convert DEARU to DESU/MASU style.
Use them with greple -Msubst options.
Print converted text.
Produce diff output of original and converted text. Use cdif command in App::sdif to visualize the difference.
To update the file, use these options. Option --create make new file with extention .new. Option --replace updates the target file with backup, while option --overwrite does it without backup.
.new
See App::Greple::subst for other options.
From CPAN:
cpanm App::Greple::subst::desumasu
From GIT repository:
cpanm https://github.com/kaz-utashiro/greple-subst-desumasu.git
App::Greple, App::Greple::subst
App::sdif
https://github.com/kssfilo/desumasu-converter, https://kanasys.com/tech/722
greple で「ですます調」を「である化」する
Kazumasa Utashiro
Copyright 2021-2022 Kazumasa Utashiro.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install App::Greple::subst::desumasu, copy and paste the appropriate command in to your terminal.
cpanm
CPAN shell
perl -MCPAN -e shell install App::Greple::subst::desumasu
For more information on module installation, please visit the detailed CPAN module installation guide.