text: import Ember from 'ember';
  import {
    pluralize,
    singularize
  } from '../system/string';
  
  if (Ember.EXTEND_PROTOTYPES === true || Ember.EXTEND_PROTOTYPES.String) {
    /**
      See {{#crossLink "Ember.String/pluralize"}}{{/crossLink}}
  
      @method pluralize
      @for String
    */
    Object.defineProperty(String.prototype, 'pluralize', {
      get() {
        Ember.deprecate(`String.prototype.pluralize() is deprecated. Please explicitly: import { pluralize } from 'ember-inflector';`, false, {
          id: 'ember-inflector.globals',
          until: '3.0.0',
        });
  
        return function() {
          return pluralize(this);
        };
      },
    });
  
    /**
      See {{#crossLink "Ember.String/singularize"}}{{/crossLink}}
  
      @method singularize
      @for String
    */
    Object.defineProperty(String.prototype, 'singularize', {
      get() {
        Ember.deprecate(`String.prototype.singularize() is deprecated. Please explicitly: import { singularize } from 'ember-inflector';`, false, {
          id: 'ember-inflector.globals',
          until: '3.0.0',
        });
  
        return function() {
          return singularize(this);
        };
      },
    });
  }
  