diff --git a/password_policy_characters/src/Plugin/PasswordConstraint/PasswordCharacter.php b/password_policy_characters/src/Plugin/PasswordConstraint/PasswordCharacter.php
index 8e40bba..3abc880 100644
--- a/password_policy_characters/src/Plugin/PasswordConstraint/PasswordCharacter.php
+++ b/password_policy_characters/src/Plugin/PasswordConstraint/PasswordCharacter.php
@@ -106,17 +106,26 @@ class PasswordCharacter extends PasswordConstraintBase {
       '#type' => 'select',
       '#title' => $this->t('Character type'),
       '#required' => TRUE,
-      '#options' => [
-        'uppercase' => 'Uppercase',
-        'lowercase' => 'Lowercase',
-        'numeric' => 'Numeric',
-        'special' => 'Special Character',
-      ],
+      '#options' => $this->getCharacterTypeOptions(),
       '#default_value' => $this->getConfiguration()['character_type'],
     ];
     return $form;
   }
 
+  /**
+   * Gets the list of available character types.
+   * 
+   * @return array
+   */
+  private function getCharacterTypeOptions() {
+    return [
+      'uppercase' => $this->t('Uppercase'),
+      'lowercase' => $this->t('Lowercase'),
+      'numeric' => $this->t('Numeric'),
+      'special' => $this->t('Special Character'),
+    ];
+  }
+
   /**
    * {@inheritdoc}
    */
@@ -138,7 +147,13 @@ class PasswordCharacter extends PasswordConstraintBase {
    * {@inheritdoc}
    */
   public function getSummary() {
-    return $this->t('Password must contain @characters @character-type characters', ['@character-type' => $this->configuration['character_type'], '@characters' => $this->configuration['character_count']]);
+    $character_type_label = $this->configuration['character_type'];
+    // Try to get the human readable name of the character type.
+    $character_type_options = $this->getCharacterTypeOptions();
+    if (!empty($character_type_options[$this->configuration['character_type']])) {
+      $character_type_label = $character_type_options[$this->configuration['character_type']];
+    }
+    return $this->t('Password must contain @characters @character-type characters', ['@character-type' => $character_type_label, '@characters' => $this->configuration['character_count']]);
   }
 
 }
