UNPKG

new-relic-language-linter

Version:

A linter for natural language in the style of grammarly.

47 lines (40 loc) 1.43 kB
/*! * Checks if the provided word is the first in the sentence * @param {Array} words - A collection of the words in the sentence * @param {Object} word - the word object in question * @return {Boolean} Whether it a proper noun */ /*! * Checks if the provided capitalized word is already a part of a suggestion * @param {Object} word - the current word object * @return {Boolean} Whether it already exists as a suggestion */ /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */ /*! * Number-To-Words util * @version v1.2.4 * @link https://github.com/marlun78/number-to-words * @author Martin Eneqvist (https://github.com/marlun78) * @contributors Aleksey Pilyugin (https://github.com/pilyugin),Jeremiah Hall (https://github.com/jeremiahrhall),Adriano Melo (https://github.com/adrianomelo),dmrzn (https://github.com/dmrzn) * @license MIT */ /*! * jsPOS * * Copyright 2010, Percy Wegmann * Licensed under the GNU LGPLv3 license * http://www.opensource.org/licenses/lgpl-3.0.html */ /*! * jsPOS * * Copyright 2010, Percy Wegmann * Licensed under the LGPLv3 license * http://www.opensource.org/licenses/lgpl-3.0.html */ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */